mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
FS-12010: [sofia-sip] Fix improper cleanup on su_deinit().
This commit is contained in:
1 parent
96aac32237
commit
f93445a38c
5 files changed
+24
-6
No files matched your search
@@ -6477,7 +6477,7 @@ void mod_sofia_shutdown_cleanup() {
|
||||
Release the clone of the default SIP parser
|
||||
created by `sip_update_default_mclass(sip_extend_mclass(NULL))` call with NULL argument
|
||||
*/
|
||||
free(sip_default_mclass());
|
||||
sip_cloned_parser_destroy();
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
switch_core_hash_destroy(&mod_sofia_globals.profile_hash);
|
||||
|
||||
@@ -4290,6 +4290,7 @@ switch_status_t sofia_init(void)
|
||||
su_init();
|
||||
if (sip_update_default_mclass(sip_extend_mclass(NULL)) < 0) {
|
||||
su_deinit();
|
||||
sip_cloned_parser_destroy();
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user