lib ldb: fix use after free
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 17 Dec 2019 22:17:51 +0000 (11:17 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 18 Dec 2019 06:39:26 +0000 (06:39 +0000)
commit4d9753dfbd8a2d66d86f60aabee627826247aa38
tree362ddbbd2628ba6758b7f615280059d4ab218639
parent0e651b4508d44e4343c83e1c157d919150aee489
lib ldb: fix use after free

Fix ASAN detected use after free.  No security implications as  the
talloc_free is followed immediately by the print statement and the value
printed is an integer

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/common/ldb.c