mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#9924 slapo-deref: plug memleak
memory alloc'd by bvarray_dup must be freed by bvarray_free, not regular free.
This commit is contained in:
parent
a779f148a0
commit
e640ce282a
@ -439,7 +439,7 @@ deref_response( Operation *op, SlapReply *rs )
|
||||
rc = ber_printf( ber, "{O[W]}",
|
||||
&dr->dr_spec.ds_attributes[ j ]->ad_cname,
|
||||
dr->dr_vals[ i ].dv_attrVals[ j ] );
|
||||
op->o_tmpfree( dr->dr_vals[ i ].dv_attrVals[ j ],
|
||||
ber_bvarray_free_x( dr->dr_vals[ i ].dv_attrVals[ j ],
|
||||
op->o_tmpmemctx );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user