From bdfc02f22793ee3fb2d02edaa970c34807fc1c3b Mon Sep 17 00:00:00 2001 From: Bob McCarthy Date: Wed, 2 May 2018 14:06:01 -0600 Subject: [PATCH] FS-10808 [mod_sofia] Fix memory leak in SLA --- src/mod/endpoints/mod_sofia/sofia_presence.c | 2 ++ 1 file changed, 2 insertions(+) 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);