From: Howard Chu Date: Fri, 24 Jul 2015 18:32:19 +0000 (+0100) Subject: ITS#8203 plug leak in prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa705a18146739efdbeb208ef7d8e08450215211;p=openldap ITS#8203 plug leak in prev commit --- diff --git a/servers/slapd/back-mdb/dn2id.c b/servers/slapd/back-mdb/dn2id.c index 43b82ce076..b7753435b4 100644 --- a/servers/slapd/back-mdb/dn2id.c +++ b/servers/slapd/back-mdb/dn2id.c @@ -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;