about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/mem.c b/Src/mem.c
index 16537eba5..499f7d7e4 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -491,6 +491,7 @@ hrealloc(char *p, size_t old, size_t new)
 	     */
 	    size_t n = (new + sizeof(*h) + HEAPSIZE);
 	    n -= n % HEAPSIZE;
+	    fheap = NULL;
 
 #ifdef USE_MMAP
 	    {