]> git.sur5r.net Git - openldap/commitdiff
Fix slapadd -q -w double-free
authorHoward Chu <hyc@openldap.org>
Fri, 17 Aug 2012 20:38:47 +0000 (13:38 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 17 Aug 2012 20:38:47 +0000 (13:38 -0700)
servers/slapd/back-mdb/tools.c

index ec62c50cc35c327d9090cc4cab1a4b3e6ec6d330..bc2f401a58c345ec6714abba55067c874deda3ff 100644 (file)
@@ -960,6 +960,7 @@ done:
                e->e_id = NOID;
        }
        txn = NULL;
+       idcursor = NULL;
 
        return e->e_id;
 }