mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 04:44:39 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user