ref: 6127cfff42b7f5245b0a95f15fdce2ab82cf73ea
parent: 49c4501d95ecfd17b4e6d44ea9bcf3f7b485c349
author: Ori Bernstein <[email protected]>
date: Mon Aug 6 20:33:32 EDT 2012
Free all of the allocated address space.
--- a/alloc.myr
+++ b/alloc.myr
@@ -182,7 +182,8 @@
s.next = bkt.cache
bkt.cache = s
else
- munmap(s.head, Slabsz)
+ /* we allocated 2*Slabs so we could align it */
+ munmap(s.head, Slabsz*2)
;;
;;
s.nfree++