factor out a bit of the chunk index code and use it to make sure that a
authortedu <tedu@openbsd.org>
Sun, 18 May 2014 17:49:47 +0000 (17:49 +0000)
committertedu <tedu@openbsd.org>
Sun, 18 May 2014 17:49:47 +0000 (17:49 +0000)
commit2ad2a20b3f235ac6d2a49be585e5848701549fb0
treea938d558f74874203215ad43eb4fa247727cb5d2
parentca68072a688cf728a88c80bb1a274b92d9c7ce09
factor out a bit of the chunk index code and use it to make sure that a
freed chunk is actually freeable immediately. catch more errors.
hints/ok otto
lib/libc/stdlib/malloc.c