smbd: Fix a memleak in async search ask sharemode
authorVolker Lendecke <vl@samba.org>
Mon, 3 Sep 2018 13:54:48 +0000 (15:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 5 Sep 2018 11:31:41 +0000 (13:31 +0200)
commit91a5d382bc0baf66a4701901a7e2096071ce1219
treec38211b9e8fe45c8fe4d1fc3a1ac772e88febcd7
parent8385a0c84bb71304584c3742a21998d2b07fa6c0
smbd: Fix a memleak in async search ask sharemode

fetch_share_mode_unlocked_parser() takes a "struct
fetch_share_mode_unlocked_state *" as
"private_data". fetch_share_mode_send() used a talloc_zero'ed "struct
share_mode_lock". This lead to the parser putting a "struct
share_mode_lock on the NULL talloc_context where nobody really picked it
up.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13602
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 0bd109b733fbce774feae2142d25f7e828b56bcb)
source3/locking/share_mode_lock.c