Patches by Andrej Gessel fix several mem leaks in ldb_index ldb_search ldb_tdb
Fixed in master by 3ca1c09f686fbfa9257cd95710dba4a98c3eeb8f for Samba 4.9 and by 7ccd1eb5393f76642a96db0037d9f4b3bb10709a in v4-8-test for ldb 1.3.4 and Samba 4.8.3. Possible to backport to 4.7 series