FS-10808 [mod_sofia] Fix memory leak in SLA

This commit is contained in:
Bob McCarthy 2018-05-02 14:06:01 -06:00
parent 8f10ae54a1
commit bdfc02f227
1 changed files with 2 additions and 0 deletions

View File

@ -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);