]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10808 [mod_sofia] Fix memory leak in SLA
authorBob McCarthy <bob.mccarthy@westtel.com>
Wed, 2 May 2018 20:06:01 +0000 (14:06 -0600)
committerBob McCarthy <bob.mccarthy@westtel.com>
Wed, 2 May 2018 20:06:01 +0000 (14:06 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index bba5d38f3f57620a8009391d2c7d1120abc7a430..ef3a4cfaad2ee6d7c1246d673a3a2ac2d865cfab 100644 (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);