From: Timo Sirainen Date: Sun, 21 Sep 2003 16:26:35 +0000 (+0300) Subject: Removed pool leak checking stuff, it's not used. X-Git-Tag: 1.1.alpha1~4323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d7350d5cbf886840668f58e5535a85af90e6cd;p=thirdparty%2Fdovecot%2Fcore.git Removed pool leak checking stuff, it's not used. --HG-- branch : HEAD --- diff --git a/src/lib/mempool.h b/src/lib/mempool.h index 03f0856ae8..179fa664b8 100644 --- a/src/lib/mempool.h +++ b/src/lib/mempool.h @@ -3,8 +3,6 @@ #include "macros.h" -/* #define POOL_CHECK_LEAKS */ - /* Memory allocated and reallocated (the new data in it) in pools is always zeroed, it will cost only a few CPU cycles and may well save some debug time. */ @@ -69,12 +67,4 @@ pool_t pool_datastack_create(void); (rec) = NULL; \ } STMT_END -/* p_free_clean() should be used when pool is being destroyed, so freeing - memory isn't needed for anything else than detecting memory leaks. */ -#ifdef POOL_CHECK_LEAKS -# define p_free_clean(pool, mem) p_free(pool, mem) -#else -# define p_free_clean(pool, mem) -#endif - #endif