dovecot-1.1: Don't use malloc_usable_size() for clearing out mem...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 19 01:43:06 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/45a47cb0bde4
changeset: 7684:45a47cb0bde4
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 19 01:41:42 2008 +0300
description:
Don't use malloc_usable_size() for clearing out memory before freeing it.
It doesn't seem to work perfectly everywhere. Maybe put it back at some
point.

diffstat:

1 file changed, 3 insertions(+)
src/lib/mempool-system-clean.c |    3 +++

diffs (13 lines):

diff -r 356a51906b47 -r 45a47cb0bde4 src/lib/mempool-system-clean.c
--- a/src/lib/mempool-system-clean.c	Wed Jun 18 08:03:41 2008 +0300
+++ b/src/lib/mempool-system-clean.c	Thu Jun 19 01:41:42 2008 +0300
@@ -27,6 +27,9 @@
 #else
 #  define EXTRA_SIZE_SPACE SIZEOF_VOID_P
 #endif
+
+/* FIXME: Disabled for now, Valgrind at least gives errors with this enabled. */
+#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);


More information about the dovecot-cvs mailing list