(realloc_check): If mremap succeeds actually use the result.
authordrepper <drepper>
Thu, 11 Jul 2002 02:31:19 +0000 (02:31 +0000)
committerdrepper <drepper>
Thu, 11 Jul 2002 02:31:19 +0000 (02:31 +0000)
malloc/hooks.c

index 2dc5cf5..87b9e52 100644 (file)
@@ -367,6 +367,8 @@ realloc_check(oldmem, bytes, caller)
         }
       }
 #if HAVE_MREMAP
+    } else {
+      newmem = chunk2mem(newp);
     }
 #endif
   } else {