]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb: Add mem_ctx argument to ldb_kv_index_key()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 26 Feb 2020 22:30:00 +0000 (11:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Feb 2020 03:08:46 +0000 (03:08 +0000)
commit535debb312b8dc5a9de6b6fe2543af84e9534a23
tree6b5ec27a5a56bcc210386c4bb2f7c153abd46b00
parent48cfb8458b0ff86e3a431240933caa02d64af82f
ldb: Add mem_ctx argument to ldb_kv_index_key()

This avoids using "ldb" as the memory context in most cases, and may avoid
a long-term memory leak if future changes cause dn_key not to be freed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14299

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/ldb_key_value/ldb_kv_index.c