From 51346cfa680e3450e10106886f8ba41650e6b7c2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 18 Jul 2005 21:32:31 +0000 Subject: [PATCH] fix ITS#3862 --- servers/slapd/back-ldap/search.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5