From 1cd12e2adeb9468c7d22a8ce9225025fd0a2d001 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 10 Oct 2005 02:49:22 +0000 Subject: [PATCH] don't call the typemap with value 0 --- Repair/RepairCompiler/MCC/CRuntime/instrument.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Repair/RepairCompiler/MCC/CRuntime/instrument.c b/Repair/RepairCompiler/MCC/CRuntime/instrument.c index ab5db1e..dd1ccc0 100755 --- a/Repair/RepairCompiler/MCC/CRuntime/instrument.c +++ b/Repair/RepairCompiler/MCC/CRuntime/instrument.c @@ -24,7 +24,9 @@ void *ourmalloc(size_t size) { } void ourfree(void *ptr) { - typemapdeallocate(memmap, ptr); + if (ptr!=NULL) { + typemapdeallocate(memmap, ptr); + } free(ptr); } -- 2.34.1