From: Pierangelo Masarati Date: Thu, 7 Dec 2006 19:44:04 +0000 (+0000) Subject: give cleanup another chance to free the temporary callback (ITS#4771) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fdb9b6e02bd7bd3b605a0322e0ede3a2ceabc3e;p=thirdparty%2Fopenldap.git give cleanup another chance to free the temporary callback (ITS#4771) --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index ddaddd1a60..86aea6ca17 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1751,6 +1751,9 @@ static int connection_bind_cleanup_cb( Operation *op, SlapReply *rs ) { op->o_conn->c_sasl_bindop = NULL; + ch_free( op->o_callback ); + op->o_callback = NULL; + return SLAP_CB_CONTINUE; }