]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
actual fix for commit cff5209ca3582994dae1353372e2f91b345ab959 which was in the wrong...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Oct 2014 21:04:15 +0000 (16:04 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 16 Oct 2014 21:04:33 +0000 (16:04 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 6040ec00568400e01605f06cd8d9bc36b2dae9ad..4102dbecc0bc7052b65331584abedca25a5fb25a 100644 (file)
@@ -1798,6 +1798,7 @@ void sofia_event_callback(nua_event_t event,
                                                        switch_mutex_lock(profile->flag_mutex);
                                                        switch_core_hash_insert(profile->chat_hash, tech_pvt->call_id, strdup(switch_core_session_get_uuid(session)));
                                                        switch_mutex_unlock(profile->flag_mutex);
+                                                       nua_handle_destroy(nh);
                                                } else {
                                                        switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
                                                }