From 2887332573c18d2ded86e9cd1ab7dbee98180a8b Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 7 Aug 2014 21:08:07 +0400 Subject: [PATCH] Fixing valgrind annotations in mem_heap_alloc_block for path added in ae189c6107f943f5273f9b2fce14ad17a396636c. --- src/liballocator/mem-heap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/liballocator/mem-heap.c b/src/liballocator/mem-heap.c index e69bc084f..e01eee9f4 100644 --- a/src/liballocator/mem-heap.c +++ b/src/liballocator/mem-heap.c @@ -363,7 +363,11 @@ mem_heap_alloc_block( size_t size_in_bytes, /**< size of region to all } else { + VALGRIND_DEFINED_STRUCT( next_block_p); + next_block_p->neighbours[ MEM_DIRECTION_PREV ] = (mem_block_header_t*) new_free_block_first_chunk_p; + + VALGRIND_NOACCESS_STRUCT( next_block_p); } next_block_p = new_free_block_p;