summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-06-22 17:16:09 -0700
committerRalph Boehme <slow@samba.org>2021-06-25 15:53:31 +0000
commitb8190ce3d87be016709f3ddcd8bc763d3418ead9 (patch)
tree44aff1e8cb3b06bb1b042d4e2f1e547da3859af8
parent2fdbac2c5fe368204267bb3d07bcbee4b6b92ca7 (diff)
downloadsamba-b8190ce3d87be016709f3ddcd8bc763d3418ead9.tar.gz
s3: VFS: streams_xattr: In streams_xattr_pwrite() - remove smb_fname_base.
No longer used and we were leaking it onto the talloc_tos() anyway. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--source3/modules/vfs_streams_xattr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index b525ac973f9..4fcfeba3060 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -962,7 +962,6 @@ static ssize_t streams_xattr_pwrite(vfs_handle_struct *handle,
(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
struct ea_struct ea;
NTSTATUS status;
- struct smb_filename *smb_fname_base = NULL;
int ret;
DEBUG(10, ("streams_xattr_pwrite called for %d bytes\n", (int)n));
@@ -996,18 +995,6 @@ static ssize_t streams_xattr_pwrite(vfs_handle_struct *handle,
return -1;
}
- /* Create an smb_filename with stream_name == NULL. */
- smb_fname_base = synthetic_smb_fname(talloc_tos(),
- sio->base,
- NULL,
- NULL,
- fsp->fsp_name->twrp,
- fsp->fsp_name->flags);
- if (smb_fname_base == NULL) {
- errno = ENOMEM;
- return -1;
- }
-
status = get_ea_value(talloc_tos(),
handle->conn,
fsp->base_fsp,