]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid leaking memory on mod_voicemail unload
authorTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 06:48:36 +0000 (06:48 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 06:48:36 +0000 (06:48 +0000)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 186c73fefb9776ae84be5d29cdca8c4a87cf27ad..a7782863ebe55febd34238c25d33c1f17140cf98 100644 (file)
@@ -6280,7 +6280,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_voicemail_shutdown)
                switch_core_destroy_memory_pool(&profile->pool);
                profile = NULL;
        }
+       switch_core_hash_destroy(&globals.profile_hash);
        switch_mutex_unlock(globals.mutex);
+       switch_mutex_destroy(globals.mutex);
 
        return SWITCH_STATUS_SUCCESS;
 }