mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
[mod_sofia] Calling direct _unref() functions in sofia_event_callback() is unsafe.
This commit is contained in:
1 parent
9b91e82fa8
commit
65d0665a95
1 file changed
+4
-4
@@ -2581,8 +2581,8 @@ void sofia_event_callback(nua_event_t event,
|
|||||||
profile->queued_events--;
|
profile->queued_events--;
|
||||||
switch_mutex_unlock(profile->flag_mutex);
|
switch_mutex_unlock(profile->flag_mutex);
|
||||||
|
|
||||||
nua_handle_unref(nh);
|
nua_handle_unref_user(nh);
|
||||||
nua_unref(nua);
|
nua_unref_user(nua);
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
@@ -2619,8 +2619,8 @@ void sofia_event_callback(nua_event_t event,
|
|||||||
profile->queued_events--;
|
profile->queued_events--;
|
||||||
switch_mutex_unlock(profile->flag_mutex);
|
switch_mutex_unlock(profile->flag_mutex);
|
||||||
|
|
||||||
nua_handle_unref(nh);
|
nua_handle_unref_user(nh);
|
||||||
nua_unref(nua);
|
nua_unref_user(nua);
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user