fix mem leak in ldbsearch

Signed-off-by: Andrej Gessel <Andrej.Gessel@janztec.com>
20 jobs for andiges23-ldbsearch-mem-leak in 290 minutes and 30 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #86323463
docker shared
build_ctdb

00:19:14

passed #86323465
docker shared
build_others

00:13:36

passed #86323466
docker private
build_samba

03:34:20

passed #86323469
docker private
build_samba_ad_dc

01:08:46

passed #86323460
docker shared
build_samba_ad_dc_2

00:31:35

passed #86439453
shared docker
build_samba_ctdb

00:36:21

passed #86323468
docker private
build_samba_fileserver

00:17:53

passed #86323461
docker shared
build_samba_libs

00:36:16

passed #86323455
docker shared
build_samba_none_env

00:47:45

passed #86333163
shared docker
build_samba_nopython

00:24:02

passed #86323467
docker private
build_samba_nt4

00:35:10

passed #86362841
shared docker
build_samba_o3

00:17:46

passed #86439482
shared docker
build_samba_static

00:52:01

passed #86338030
shared docker
build_samba_systemkrb5

00:08:55

passed #86323458
docker shared
build_samba_xc

00:07:01

failed #86323464
docker shared
build_samba_ctdb

00:02:36

failed #86323456
docker shared
build_samba_nopython

00:05:14

failed #86323459
docker shared
build_samba_o3

01:00:28

failed #86323462
docker shared
build_samba_static

00:04:04

failed #86323457
docker shared
build_samba_systemkrb5

00:05:57