]> git.sur5r.net Git - openldap/commitdiff
ITS#8203 plug leak in prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 24 Jul 2015 18:32:19 +0000 (19:32 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 24 Jul 2015 18:32:19 +0000 (19:32 +0100)
servers/slapd/back-mdb/dn2id.c

index 43b82ce076df4a317d8979e9ffcc2f06e99df637..b7753435b4a3f81476293e519e882432ac2f7492 100644 (file)
@@ -957,6 +957,7 @@ void mdb_dn2id_wrestore (
                data.mv_size = 1;
                *ptr |= 0x80;
                mdb_cursor_get( isc->mc, &key, &data, MDB_GET_BOTH );
+               op->o_tmpfree( ptr, op->o_tmpmemctx );
 
                /* now we're back to where we wanted to be */
                d = data.mv_data;