From 0963a783b082aa79de4275843cb3d93b4c105ada Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 2 Sep 1999 12:08:43 +0000 Subject: [PATCH] Fix extraneous call to ldap_msgfree. --- servers/slapd/back-ldap/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index eaeae0e7d0..31bab0f105 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -103,13 +103,13 @@ fail: return( ldap_back_op_result(lc, op) ); e = ldap_first_entry(lc->ld,res); ldap_send_entry(be, op, lc, e, attrs, attrsonly); i++; + ldap_msgfree(res); } else { sres = ldap_result2error(lc->ld, res, 1); ldap_get_option(lc->ld, LDAP_OPT_ERROR_STRING, &err); ldap_get_option(lc->ld, LDAP_OPT_MATCHED_DN, &match); rc = 0; } - ldap_msgfree(res); if (ab) return (0); else if (rc == 0) -- 2.39.5