fix mem leak in ltdb_index_dn_base_dn and ltdb_search_indexed

Signed-off-by: Andrej Gessel <Andrej.Gessel@janztec.com>
18 jobs for andiges23-memleaks-ldb in 383 minutes and 27 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Build
passed #86324464
docker shared
build_ctdb

00:15:16

passed #86324469
docker shared
build_others

00:12:09

passed #86439591
docker private
build_samba

03:17:31

passed #86324475
docker private
build_samba_ad_dc

01:08:25

passed #86324461
docker shared
build_samba_ad_dc_2

00:22:19

passed #86324466
docker shared
build_samba_ctdb

00:34:26

passed #86324473
docker private
build_samba_fileserver

00:17:56

passed #86324462
docker shared
build_samba_libs

00:18:32

passed #86324451
docker shared
build_samba_none_env

00:48:01

passed #86324453
docker shared
build_samba_nopython

00:28:17

passed #86324472
docker private
build_samba_nt4

00:33:18

passed #86324460
docker shared
build_samba_o3

00:37:32

passed #86439629
shared docker
build_samba_static

00:28:09

passed #86324455
docker shared
build_samba_systemkrb5

00:18:06

passed #86324457
docker shared
build_samba_xc

00:07:59

failed #86324471
docker private
build_samba

01:05:33

failed #86363124
private docker
build_samba

02:28:48

failed #86324463
docker shared
build_samba_static

00:04:32