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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50ee55b84fb5061624adaf584f937cf9f0a2947a;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 6040ec0056..9f833c0373 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8123,6 +8123,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; }