From e6923330aa5ec2a8afad9c0770b00bd08d48f8d7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Aug 2013 22:51:07 +0400 Subject: Adjust GC_debug_malloc/realloc_replacement macro to match the API function * malloc.c (GC_debug_malloc_replacement): Pass NULL (instead of "unknown") to "s" argument of GC_debug_malloc to match that replacement definition in dbg_mlc.c. * mallocx.c (GC_debug_realloc_replacement): Likewise. --- malloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'malloc.c') diff --git a/malloc.c b/malloc.c index c1e2ed2c..ef269095 100644 --- a/malloc.c +++ b/malloc.c @@ -355,9 +355,8 @@ GC_API void * GC_CALL GC_malloc_uncollectable(size_t lb) /* malloc replacements. Otherwise we end up saving a */ /* meaningless return address in the object. It also speeds things up, */ /* but it is admittedly quite ugly. */ - # define GC_debug_malloc_replacement(lb) \ - GC_debug_malloc(lb, GC_DBG_RA "unknown", 0) + GC_debug_malloc(lb, GC_DBG_RA NULL, 0) void * malloc(size_t lb) { -- cgit v1.2.1