]> 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)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 2 Jan 2010 18:05:56 +0000 (18:05 +0000)
commit062021e731f4a8905c6572562d1f2e8d3a63fd31
treedd09cc35e8894cc9036bdb84344bc2ef14a91203
parent7946c100a482c5ca1aaa8e28c7178cac64bb61c0
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