From d03862cf3cf24f5559be3570f4bdc85e0789baeb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 5 Nov 2009 07:06:19 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15369 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }