From: Bob McCarthy Date: Wed, 2 May 2018 20:06:01 +0000 (-0600) Subject: FS-10808 [mod_sofia] Fix memory leak in SLA X-Git-Tag: v1.8.1~3^2~220^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdfc02f22793ee3fb2d02edaa970c34807fc1c3b;p=thirdparty%2Ffreeswitch.git FS-10808 [mod_sofia] Fix memory leak in SLA --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index bba5d38f3f..ef3a4cfaad 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3634,6 +3634,8 @@ static int sync_sla(sofia_profile_t *profile, const char *to_user, const char *t sofia_glue_execute_sql_callback(profile, profile->dbh_mutex, sql, broadsoft_sla_notify_callback, sh); switch_safe_free(sql); total = sh->total; + switch_core_hash_destroy(&sh->hash); + sh = NULL; switch_core_destroy_memory_pool(&pool);