vfs_glusterfs: Fix a memory leak in connect path
authorAnoop C S <anoopcs@redhat.com>
Fri, 7 Oct 2016 10:35:29 +0000 (16:05 +0530)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2016 08:56:12 +0000 (10:56 +0200)
commit15a8ee6ff29e498a2c19f7112b583975cea82146
treeaab4d38b8f124a6bf772be4b377155f36a64a46b
parent17e61a14efdae6fd780b4d0ae95e47c8a7797af1
vfs_glusterfs: Fix a memory leak in connect path

Early return in case of failure to set snapdir-entry-path xlator option
leaks talloced tmp_ctx.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Oct  7 19:39:11 CEST 2016 on sn-devel-144

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12377

(cherry picked from commit 06281e8f1b912540a8cc2a79497b074dbe559d53)
source3/modules/vfs_glusterfs.c