ldb: Free memory when repacking database
commitd819a1c20503484b3624aeda426a37912a4ee692
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 30 Jul 2019 22:54:29 +0000 (31 10:54 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 07:06:19 +0000 (26 07:06 +0000)
treea2bf140df2f6a0e02c97a216ae03bc0e4aaece90
parent18fb5fb911d098701e4af732977310e48ed403a9
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

(cherry picked from commit b6516dbd24df8c78ed909c7ef9058b0844abb917)
lib/ldb/ldb_key_value/ldb_kv_index.c