]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Nov 2009 07:06:19 +0000 (07:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Nov 2009 07:06:19 +0000 (07:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15369 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 381b5f7b83a2df544585801a67369a6138b1c31f..e9e1f74bb294cc9e0f4e5a30f2b022aa8aa51baf 100644 (file)
@@ -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;
        }