FS-12010: [sofia-sip] Fix improper cleanup on su_deinit().

This commit is contained in:
Andrey Volk committed 2019-08-20 03:11:28 +04:00
1 parent 96aac32237
commit f93445a38c
5 files changed
+24 -6

No files matched your search

+1 -1
View File
@@ -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);
+1
View File
@@ -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;
}