From: Sviatoslav Chagaev Date: Fri, 13 Sep 2013 15:43:41 +0000 (+0300) Subject: Fix incorrect sizeof in a Valgrind hint macro call. X-Git-Tag: dbus-1.7.6~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=996b2968357f01d92d46c53ba59e9bd39ecd20eb;p=thirdparty%2Fdbus.git Fix incorrect sizeof in a Valgrind hint macro call. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69326 Reviewed-by: Simon McVittie --- diff --git a/dbus/dbus-mempool.c b/dbus/dbus-mempool.c index e7445853e..524661514 100644 --- a/dbus/dbus-mempool.c +++ b/dbus/dbus-mempool.c @@ -393,7 +393,7 @@ _dbus_mem_pool_dealloc (DBusMemPool *pool, freed = element; /* used for internal mempool administration */ - VALGRIND_MAKE_MEM_UNDEFINED (freed, sizeof (freed)); + VALGRIND_MAKE_MEM_UNDEFINED (freed, sizeof (*freed)); freed->next = pool->free_elements; pool->free_elements = freed;