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.8.2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=996b2968357f01d92d46c53ba59e9bd39ecd20eb;p=platform%2Fupstream%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 e744585..5246615 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;