From: Anthony Minessale Date: Mon, 13 Oct 2014 23:06:32 +0000 (-0500) Subject: fix leak of nua handle due to reference counting that must be between 3 to 7 years... X-Git-Tag: v1.4.13~1^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff5209ca3582994dae1353372e2f91b345ab959;p=thirdparty%2Ffreeswitch.git fix leak of nua handle due to reference counting that must be between 3 to 7 years old. Effects all calls with auth/challenge on INVITE --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 496d95faf0..3c92207ebe 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8999,6 +8999,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia switch_xml_free(x_user); } + nua_handle_destroy(nh); + if (sip->sip_authorization || sip->sip_proxy_authorization) { goto fail; }