diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/mem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/mem.c b/Src/mem.c index b15be85b3..ab1ffb8a7 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -181,7 +181,11 @@ old_heaps(Heap old) for (h = heaps; h; h = n) { n = h->next; DPUTS(h->sp, "BUG: old_heaps() with pushed heaps"); +#ifdef USE_MMAP + munmap((void *) h, sizeof(*h)); +#else zfree(h, sizeof(*h)); +#endif } heaps = old; fheap = NULL; |