mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
prevent double free
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13195 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -262,10 +262,9 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
|
||||
|
||||
end:
|
||||
|
||||
if (sub_state == nua_substate_terminated) {
|
||||
sofia_private_free(sofia_private);
|
||||
nua_handle_bind(nh, NULL);
|
||||
nua_handle_destroy(nh);
|
||||
if (sub_state == nua_substate_terminated && sofia_private != &mod_sofia_globals.destroy_private) {
|
||||
sofia_private->destroy_nh = 1;
|
||||
sofia_private->destroy_me = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user