]> git.sur5r.net Git - openldap/commit
ITS#6437, slap_sl_mem_create():
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 2 Jan 2010 18:05:56 +0000 (18:05 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 3 Nov 2011 21:59:22 +0000 (14:59 -0700)
commitd729901a7d02c519e9ee73078dcb89a579aaf010
treef002ea84576c753112c15e55c449c8530869d399
parent9501d1fe797f251626de7c9a4a996e03613da8ff
ITS#6437, slap_sl_mem_create():
Bugfix: Switching implementation stack<->pool on an old context could
        crash or leak, it ran the wrong implementation's cleanup code.
Cleanup:  Factor out identical stack/pool code.  Call
          slap_sl_mem_destroy(NULL,) instead of copying its pool code.
API change: slap_sl_mem_destroy(key=NULL,) gets a new meaning.  Does
            not affect current OpenLDAP code, it never passed NULL.
servers/slapd/sl_malloc.c