Merge pull request #1520 in FS/freeswitch from ~BOBMCCARTHY/freeswitch:bugfix/FS-10808-memory-leak-with-sla-registrations to master

* commit 'bdfc02f22793ee3fb2d02edaa970c34807fc1c3b':
  FS-10808 [mod_sofia] Fix memory leak in SLA
This commit is contained in:
Mike Jerris 2018-05-04 14:37:06 +00:00
commit ed4920e792
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); sofia_glue_execute_sql_callback(profile, profile->dbh_mutex, sql, broadsoft_sla_notify_callback, sh);
switch_safe_free(sql); switch_safe_free(sql);
total = sh->total; total = sh->total;
switch_core_hash_destroy(&sh->hash);
sh = NULL; sh = NULL;
switch_core_destroy_memory_pool(&pool); switch_core_destroy_memory_pool(&pool);