]> 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, 12 Apr 2014 06:43:11 +0000 (06:43 +0000)
src/mod/applications/mod_hash/mod_hash.c

index 9af63045b39d980d821a389f49cc3e5ce4c79f40..d1ab3172045cea685160e3c7b081c8854fd1841a 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;