stupid bugs in our realloc function fixed
authorbdemsky <bdemsky>
Mon, 10 Oct 2005 02:32:59 +0000 (02:32 +0000)
committerbdemsky <bdemsky>
Mon, 10 Oct 2005 02:32:59 +0000 (02:32 +0000)
Repair/RepairCompiler/MCC/CRuntime/instrument.c

index 66aef0d..a2ed892 100755 (executable)
@@ -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) {