ldb: Free empty index lists as talloc_realloc() fails in this case
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jul 2016 22:26:56 +0000 (10:26 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 08:06:12 +0000 (10:06 +0200)
commitebdf6e079b758aeb750201c4989706c43af2420e
treea4de10e38ba3015659d5b5819379182d90431d70
parent7a21e40d7557328e3f836af5f289f966617774c1
ldb: Free empty index lists as talloc_realloc() fails in this case

talloc_realloc() requires that we know the correct parent to do the 0 -> free behaviour
and we do not have the correct parent here, list->dn may be a child of the module->idxptr
cache.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_index.c