libsmb: fix leak in opendir error path
authorDavid Disseldorp <ddiss@samba.org>
Tue, 25 Oct 2016 16:25:02 +0000 (18:25 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 25 Oct 2016 22:58:41 +0000 (00:58 +0200)
commit84786c83054731b8fc304289dfea7c6d0e40148c
tree6228dbf110be600374aab2dc127eda64131d2187
parentca5e109353864371b051b79f05f97dbef751b49e
libsmb: fix leak in opendir error path

Fixes CID 242325 - dir state and the talloc frame are leaked on
user_auth_info_init() failure.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Oct 26 00:58:41 CEST 2016 on sn-devel-144
source3/libsmb/libsmb_dir.c