From cff5209ca3582994dae1353372e2f91b345ab959 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 13 Oct 2014 18:06:32 -0500 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia.c | 2 ++ 1 file changed, 2 insertions(+) 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; }