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

index 87c2f0521bb7f110685f01699a9e284930836124..bb19a84fdb81ab6dce2ad9fb4188b2d0577e8d98 100644 (file)
@@ -1070,12 +1070,14 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_hash_shutdown)
 
        switch_core_hash_destroy(&globals.limit_hash);
        switch_core_hash_destroy(&globals.db_hash);     
+       switch_core_hash_destroy(&globals.remote_hash);
 
        switch_thread_rwlock_unlock(globals.limit_hash_rwlock);
        switch_thread_rwlock_unlock(globals.db_hash_rwlock);
 
        switch_thread_rwlock_destroy(globals.db_hash_rwlock);
        switch_thread_rwlock_destroy(globals.limit_hash_rwlock);
+       switch_thread_rwlock_destroy(globals.remote_hash_rwlock);
 
 
        return SWITCH_STATUS_SUCCESS;