From: Pierangelo Masarati Date: Mon, 18 Jul 2005 21:32:31 +0000 (+0000) Subject: fix ITS#3862 X-Git-Tag: OPENLDAP_AC_BP~352 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51346cfa680e3450e10106886f8ba41650e6b7c2;p=openldap fix ITS#3862 --- diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 3a21f56c9e..fbe01a0ef9 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -255,6 +255,9 @@ fail:; { /* check for abandon */ if ( op->o_abandon ) { + if ( rc > 0 ) { + ldap_msgfree( res ); + } ldap_abandon_ext( lc->lc_ld, msgid, NULL, NULL ); rc = SLAPD_ABANDON; goto finish;