mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
fix memory leak (ITS#3669)
This commit is contained in:
parent
f6ad447a8c
commit
410638fda1
@ -754,6 +754,7 @@ meta_send_entry(
|
||||
NULL );
|
||||
}
|
||||
BER_BVZERO( &attr->a_nvals[i] );
|
||||
|
||||
} else {
|
||||
attr->a_nvals = attr->a_vals;
|
||||
}
|
||||
@ -771,6 +772,9 @@ meta_send_entry(
|
||||
attr = ent.e_attrs;
|
||||
ent.e_attrs = attr->a_next;
|
||||
if ( attr->a_vals != &slap_dummy_bv ) {
|
||||
if ( attr->a_nvals != attr->a_vals ) {
|
||||
ber_bvarray_free( attr->a_nvals );
|
||||
}
|
||||
ber_bvarray_free( attr->a_vals );
|
||||
}
|
||||
free( attr );
|
||||
|
Loading…
x
Reference in New Issue
Block a user