diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-11 19:14:13 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-11 19:14:13 +0000 |
commit | ced3570bd1bc8cc40c1be1592f39699c66070015 (patch) | |
tree | 8666021b30514dddbebd72e46052fc1e2600887e /Src | |
parent | e0f68fb5dd9282850afc3b3a017affe8d269e052 (diff) | |
download | zsh-ced3570bd1bc8cc40c1be1592f39699c66070015.tar.gz zsh-ced3570bd1bc8cc40c1be1592f39699c66070015.tar.xz zsh-ced3570bd1bc8cc40c1be1592f39699c66070015.zip |
25632: xRaich[o]²x: Src/mem.c: munmap() argument was wrong.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/mem.c b/Src/mem.c index 88cd6247a..1a3e75997 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -153,9 +153,9 @@ old_heaps(Heap old) n = h->next; DPUTS(h->sp, "BUG: old_heaps() with pushed heaps"); #ifdef USE_MMAP - munmap((void *) h, sizeof(*h)); + munmap((void *) h, h->size); #else - zfree(h, sizeof(*h)); + zfree(h, HEAPSIZE); #endif } heaps = old; |