]> git.sur5r.net Git - openldap/commitdiff
fix ITS#3862
authorPierangelo Masarati <ando@openldap.org>
Mon, 18 Jul 2005 21:32:31 +0000 (21:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 18 Jul 2005 21:32:31 +0000 (21:32 +0000)
servers/slapd/back-ldap/search.c

index 3a21f56c9ea68a27d958cd20d114980b93b09c09..fbe01a0ef9e0cc4a789de5a210e01a67f294c35d 100644 (file)
@@ -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;