smbd: Fix a memleak in async search ask sharemode
commit592bdff15e01b83111aa35291dd9434a18cf5c2c
authorVolker Lendecke <vl@samba.org>
Mon, 3 Sep 2018 13:54:48 +0000 (3 15:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 5 Sep 2018 11:35:22 +0000 (5 13:35 +0200)
tree5d83009b9f07194fbac87ed79dbe2d7a9ac931a7
parent8f1183d53aa2e1b282d2954c11495552546a9899
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