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

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 21 16:40:51 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/96b8f50c9eea
changeset: 7933:96b8f50c9eea
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 91758686277a -r 96b8f50c9eea src/lib/mempool-system-clean.c
--- a/src/lib/mempool-system-clean.c	Sat Jun 21 15:24:02 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, 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);


More information about the dovecot-cvs mailing list