git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0e8b781
)
s3:vfs_glusterfs: Use SAFE_FREE
author
Andreas Schneider
<asn@samba.org>
Thu, 26 Oct 2017 06:05:20 +0000
(08:05 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Thu, 26 Oct 2017 15:31:40 +0000
(17:31 +0200)
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
source3/modules/vfs_glusterfs.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_glusterfs.c
b/source3/modules/vfs_glusterfs.c
index 32074cba4eb7c99851ca2ddd11b5d5e31f47bbe8..3534ed7027e82118b01c52f5841fd26d28656229 100644
(file)
--- a/
source3/modules/vfs_glusterfs.c
+++ b/
source3/modules/vfs_glusterfs.c
@@
-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;
}