From: Anthony Minessale Date: Thu, 5 Nov 2009 07:06:19 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.6~1495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d03862cf3cf24f5559be3570f4bdc85e0789baeb;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15369 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 381b5f7b83..e9e1f74bb2 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1386,7 +1386,8 @@ void sofia_reg_handle_sip_r_register(int status, nua_handle_destroy(sofia_private->gateway->nh); sofia_private->gateway->nh = NULL; sofia_private->gateway->state = REG_STATE_UNREGED; - + } else { + nua_handle_destroy(nh); } return; }