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)
committerGünther Deschner <gd@samba.org>
Fri, 7 Oct 2016 17:39:11 +0000 (19:39 +0200)
commit06281e8f1b912540a8cc2a79497b074dbe559d53
tree579541039b2db8849777241cdb7f9d53ae2b4af3
parent945e55c511bb8fd0040cba0e5950de5972ef9875
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
source3/modules/vfs_glusterfs.c