Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7933:96b8f50c9eea HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 19 Jun 2008 01:41:42 +0300 |
parents | 91758686277a |
children | 5dcc04b62e14 |
files | src/lib/mempool-system-clean.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ -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);