From 9ac576f6570967a59d7913da7bb9ec08896aaed6 Mon Sep 17 00:00:00 2001 From: Julien Fischer Date: Sat, 12 Nov 2011 13:08:49 +0000 Subject: [PATCH] Don't call a function that doesn't exist in grades that don't use conservative Branches: main, 11.07 Don't call a function that doesn't exist in grades that don't use conservative GC. runtime/mercury_memory.c: In MR_GC_free_attrib, call MR_GC_free not GC_free. (The corresponding allocation is made with MR_GC_malloc.) --- runtime/mercury_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/mercury_memory.c b/runtime/mercury_memory.c index 3913f5f3f..98daf90b0 100644 --- a/runtime/mercury_memory.c +++ b/runtime/mercury_memory.c @@ -441,7 +441,7 @@ MR_GC_free_attrib(void *ptr) #ifdef MR_MPROF_PROFILE_MEMORY_ATTRIBUTION ptr = (char *) ptr - sizeof(MR_Word); #endif - GC_free(ptr); + MR_GC_free(ptr); } /*---------------------------------------------------------------------------*/