ldb: Free memory when repacking database
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 30 Jul 2019 22:54:29 +0000 (10:54 +1200)
committerGarming Sam <garming@samba.org>
Tue, 20 Aug 2019 04:57:10 +0000 (04:57 +0000)
commitb6516dbd24df8c78ed909c7ef9058b0844abb917
tree9473662d6c329f2d37a3f6fafc8182a2b45e2d73
parentee6537c29e747206ee607493ce15d4532fb670c8
ldb: Free memory when repacking database

The msg for each database record is allocated on the module context, but
never freed. The module seems like it could be a long-running context (as
the database would normally get repacked by the samba executable).

Even if it's not a proper leak, it shouldn't hurt to cleanup the memory.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14059

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Tue Aug 20 04:57:10 UTC 2019 on sn-devel-184
lib/ldb/ldb_key_value/ldb_kv_index.c