From ba8f822fb979acda28e5e6f8e532464790a5c86c Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 10 Oct 2005 02:32:59 +0000 Subject: [PATCH 1/1] stupid bugs in our realloc function fixed --- Repair/RepairCompiler/MCC/CRuntime/instrument.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Repair/RepairCompiler/MCC/CRuntime/instrument.c b/Repair/RepairCompiler/MCC/CRuntime/instrument.c index 66aef0d..a2ed892 100755 --- a/Repair/RepairCompiler/MCC/CRuntime/instrument.c +++ b/Repair/RepairCompiler/MCC/CRuntime/instrument.c @@ -38,7 +38,8 @@ void *ourrealloc(void *ptr, size_t size) { return orr; } typemapdeallocate(memmap, ptr); - typemapallocate(memmap, ptr,size); + typemapallocate(memmap, orr,size); + return otr; } void alloc(void *ptr,int size) { -- 2.34.1