ldb: Free memory when repacking database master
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 03:39:55 +0000 (03:39 +0000)
commitbb7b5ec52cc7c26d08dd1d3d9b0da8373223928f
tree4a0fdb593307a91ede0c327d9b1394a23ddf53d9
parent0c0418037f206fa544435576451f6009f4595387
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>
lib/ldb/ldb_key_value/ldb_kv_index.c