1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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
This commit is contained in:
Anoop C S 2016-10-07 16:05:29 +05:30 committed by Günther Deschner
parent 945e55c511
commit 06281e8f1b

View File

@ -224,8 +224,7 @@ static int vfs_gluster_connect(struct vfs_handle_struct *handle,
if (ret < 0) {
DEBUG(0, ("%s: Failed to set xlator option:"
" snapdir-entry-path\n", volume));
glfs_fini(fs);
return -1;
goto done;
}
ret = glfs_set_logging(fs, logfile, loglevel);