1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3:vfs_glusterfs: Use SAFE_FREE

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Oct 26 17:31:40 CEST 2017 on sn-devel-144
This commit is contained in:
Andreas Schneider 2017-10-26 08:05:20 +02:00 committed by Andreas Schneider
parent 0e8b781e07
commit 4f458437af

View File

@ -1100,7 +1100,7 @@ static struct smb_filename *vfs_gluster_getwd(struct vfs_handle_struct *handle,
ret = glfs_getcwd(handle->data, cwd, PATH_MAX - 1);
if (ret == NULL) {
free(cwd);
SAFE_FREE(cwd);
return NULL;
}
smb_fname = synthetic_smb_fname(ctx,
@ -1108,7 +1108,7 @@ static struct smb_filename *vfs_gluster_getwd(struct vfs_handle_struct *handle,
NULL,
NULL,
0);
free(cwd);
SAFE_FREE(cwd);
return smb_fname;
}