]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pool_unref(x): don't set (x) = NULL, it may have been allocated from the
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 06:09:26 +0000 (08:09 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Jan 2004 06:09:26 +0000 (08:09 +0200)
pool that was just freed.

--HG--
branch : HEAD

src/lib/mempool.h

index 73b47a40e96b8ad4a3c0f9237ccb5c24b3e82b60..2e09de12bfc57a62b28b713deaf921804a5d2060 100644 (file)
@@ -49,11 +49,7 @@ pool_t pool_datastack_create(void);
 /* Pools should be used through these macros: */
 #define pool_get_name(pool) (pool)->get_name(pool)
 #define pool_ref(pool) (pool)->ref(pool)
-#define pool_unref(pool) \
-       STMT_START { \
-          (pool)->unref(pool); \
-          (pool) = NULL; \
-       } STMT_END
+#define pool_unref(pool) (pool)->unref(pool)
 
 #define p_new(pool, type, count) \
        ((type *) p_malloc(pool, sizeof(type) * (count)))