From b90267a71cc8cdc8b38675322ef9fa7a9cb5468c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Aug 2012 21:41:48 +0400 Subject: * Rework thread pools locking logic to avoid global lua mutex usage. Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries. --- src/mem_pool.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem_pool.c') diff --git a/src/mem_pool.c b/src/mem_pool.c index 2c111681f..9cc4a537d 100644 --- a/src/mem_pool.c +++ b/src/mem_pool.c @@ -620,6 +620,9 @@ memory_pool_delete (memory_pool_t * pool) mem_pool_stat->pools_freed++; POOL_MTX_UNLOCK (); +#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION > 30)) + g_mutex_clear (&pool->mtx); +#endif g_slice_free (memory_pool_t, pool); } -- cgit v1.2.3