import fix memory leak from HEAD (ITS#3669)

This commit is contained in:
Pierangelo Masarati 2005-04-19 14:31:39 +00:00
parent 7553b49971
commit f5bfd3418a
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,8 @@
OpenLDAP 2.2 Change Log
OpenLDAP 2.2.24 Engineering
OpenLDAP 2.2.25 Engineering
Fixed back-bdb ctxcsn/LRU bug (ITS#3666)
Fixed back-meta memory leak (ITS#3669)
OpenLDAP 2.2.24 Release
Fixed slapd "chldren:" typo (ITS#3560)

View File

@ -727,6 +727,9 @@ meta_send_entry(
attr = ent.e_attrs;
ent.e_attrs = attr->a_next;
if ( attr->a_vals != &dummy ) {
if ( attr->a_nvals != attr->a_vals ) {
ber_bvarray_free( attr->a_nvals );
}
ber_bvarray_free( attr->a_vals );
}
free( attr );