smbd: Fix a memleak in async search ask sharemode
commit176c9c38011a5b5fee557ce12cc307902acb746f
authorVolker Lendecke <vl@samba.org>
Mon, 3 Sep 2018 13:54:48 +0000 (3 15:54 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 4 Sep 2018 10:14:35 +0000 (4 12:14 +0200)
tree8338e4c63fbc937af025ad8246691cef14142b31
parent02f01fa7a602f6f996c857a3b2e55420ae888a0c
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