]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix leak of nua handle due to reference counting that must be between 3 to 7 years...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Oct 2014 23:06:32 +0000 (18:06 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 13 Oct 2014 23:06:32 +0000 (18:06 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 496d95faf03a600edd7d8ae6ed5fba2cfa015613..3c92207ebe8046db995b94bef136f6ef14d938da 100644 (file)
@@ -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;
                                }