]> 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, 19 Apr 2014 02:56:15 +0000 (02:56 +0000)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 801c3bf416f35dfebde2ee0e00da147384dbafe6..7a4bf67a482cc6080ff8084b419d96cb0603be86 100644 (file)
@@ -6273,7 +6273,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;
 }