]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't use malloc_usable_size() for clearing out memory before freeing it.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Jun 2008 22:41:42 +0000 (01:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Jun 2008 22:41:42 +0000 (01:41 +0300)
It doesn't seem to work perfectly everywhere. Maybe put it back at some
point.

--HG--
branch : HEAD

src/lib/mempool-system-clean.c

index ccd66fb5f4b213d7abb64545998b33bb4b25eb7e..e786dfd6ade68a1775cb85642708922198c3c2cc 100644 (file)
@@ -28,6 +28,9 @@
 #  define EXTRA_SIZE_SPACE SIZEOF_VOID_P
 #endif
 
+/* FIXME: Disabled for now, broken with Valgrind and HP-UX. */
+#undef HAVE_MALLOC_USABLE_SIZE
+
 static const char *pool_system_clean_get_name(pool_t pool);
 static void pool_system_clean_ref(pool_t pool);
 static void pool_system_clean_unref(pool_t *pool);