Fix several mem leaks in ldb_index ldb_search ldb_tdb

Signed-off-by: Andrej Gessel <[email protected]>
19 jobs for andiges23-ldb-memleaks in 192 minutes and 33 seconds (queued for 7 seconds)
Status Job ID Name Coverage
  Build
passed #74840182
docker shared
build_ctdb

00:18:36

passed #74844610
shared docker
build_others

00:12:55

failed #75237291
private docker
build_samba

02:09:30

passed #74840190
docker private
build_samba_ad_dc

01:03:02

passed #74840179
docker shared
build_samba_ad_dc_2

00:29:47

passed #74840183
docker shared
build_samba_ctdb

00:34:33

passed #74840189
docker private
build_samba_fileserver

00:17:33

passed #74840180
docker shared
build_samba_libs

00:34:16

passed #74840171
docker shared
build_samba_none_env

00:39:37

passed #74840172
docker shared
build_samba_nopython

00:28:00

passed #74840188
docker private
build_samba_nt4

00:32:13

passed #74840178
docker shared
build_samba_o3

00:30:47

passed #74840181
docker shared
build_samba_static

00:46:28

passed #74840173
docker shared
build_samba_systemkrb5

00:17:12

passed #74840176
docker shared
build_samba_xc

00:06:32

failed #74840184
docker shared
build_others

00:10:00

failed #74840186
docker private
build_samba

01:38:48

failed #74869234
private docker
build_samba

02:07:59

failed #74927434
docker private
build_samba

02:08:57

 
Name Stage Failure
failed
build_samba Build
/dev/xvda1        317594  4118    313460   2% /builds/samba-team/devel


### df -m /tmp/samba-testbase/b13
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/docker-202:1-258562-e4db20735d6e45c3d1bba615de5629b61140212f0d749b8c583409761ba5d7f3 10229 2366 7864 24% /


ERROR: Job failed: exit code 1