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.)
This commit is contained in:
Julien Fischer
2011-11-12 13:08:49 +00:00
parent d3a4b3b00c
commit 9ac576f657

View File

@@ -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);
}
/*---------------------------------------------------------------------------*/