]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
destroy the hash BEFORE freeing the pool
authorRupa Schomaker <rupa@rupa.com>
Thu, 12 Feb 2009 15:05:37 +0000 (15:05 +0000)
committerRupa Schomaker <rupa@rupa.com>
Thu, 12 Feb 2009 15:05:37 +0000 (15:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11925 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_lcr/mod_lcr.c

index 9375d3bf71fac774dfc5ea59ca3b5907c9fc4c37..44e700f1b7b1a224e6a19121efa50612a75f39a1 100644 (file)
@@ -1008,8 +1008,8 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_lcr_shutdown)
 {
        switch_odbc_handle_disconnect(globals.master_odbc);
        switch_odbc_handle_destroy(&globals.master_odbc);
-       switch_core_destroy_memory_pool(&globals.pool);
        switch_core_hash_destroy(&globals.profile_hash);
+       switch_core_destroy_memory_pool(&globals.pool);
        return SWITCH_STATUS_SUCCESS;
 }