Fix some memory leaks in the slab allocator (funny, isn't it?).
authorMichael Poole <mdpoole@troilus.org>
Fri, 14 Dec 2007 03:56:03 +0000 (22:56 -0500)
committerMichael Poole <mdpoole@troilus.org>
Fri, 14 Dec 2007 03:56:03 +0000 (22:56 -0500)
alloc-slab.c (SLAB_DEBUG): Allow environment to override definition.
  (SLAB_RESERVE): Likewise.
  (MAX_SLAB_FREE): New preprocessor macro, used to cap free_slab_count.
  (slab_unalloc): Reindent SLAB_RESERVE logic.  Unconditionally link the
    free slab to the list of free slabs.  Add code to check MAX_SLAB_FREE.


No differences found