FS-12010: [mod_sofia, mod_valet_parking, mod_enum] Fix memory leaks on FreeSWITCH shutdown.

This commit is contained in:
Andrey Volk
2019-08-18 17:23:03 +04:00
parent b6b3d78567
commit 96aac32237
3 changed files with 19 additions and 7 deletions
+6
View File
@@ -6473,6 +6473,12 @@ void mod_sofia_shutdown_cleanup() {
su_deinit();
/*
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());
switch_mutex_lock(mod_sofia_globals.hash_mutex);
switch_core_hash_destroy(&mod_sofia_globals.profile_hash);
switch_core_hash_destroy(&mod_sofia_globals.gateway_hash);