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 66aef0d2e521c2bc85bda416d843100b4cb99f35..a2ed892bfd43b6bd835f0b7ce88c5b3ee4a474ba 100755 (executable)
@@ -38,7 +38,8 @@ void *ourrealloc(void *ptr, size_t size) {
     return orr;
   }
   typemapdeallocate(memmap, ptr);
     return orr;
   }
   typemapdeallocate(memmap, ptr);
-  typemapallocate(memmap, ptr,size);
+  typemapallocate(memmap, orr,size);
+  return otr;
 }
 
 void alloc(void *ptr,int size) {
 }
 
 void alloc(void *ptr,int size) {