summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-06-22 17:20:08 -0700
committerRalph Boehme <slow@samba.org>2021-06-25 15:53:31 +0000
commit435c3f9ec1ad01a70adc0b9e0a44721ac2e8ae19 (patch)
treeac892dc03c2aae09a8bd4fa35a979201df719f92 /source3
parentfbfd4183d64e0173550963269a83732c4c3cfd74 (diff)
downloadsamba-435c3f9ec1ad01a70adc0b9e0a44721ac2e8ae19.tar.gz
s3: VFS: streams_xattr: In streams_xattr_pread() - 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>
Diffstat (limited to 'source3')
-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 f1ce58fd9f2..677d3348364 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -1046,7 +1046,6 @@ static ssize_t streams_xattr_pread(vfs_handle_struct *handle,
struct ea_struct ea;
NTSTATUS status;
size_t length, overlap;
- struct smb_filename *smb_fname_base = NULL;
DEBUG(10, ("streams_xattr_pread: offset=%d, size=%d\n",
(int)offset, (int)n));
@@ -1059,18 +1058,6 @@ static ssize_t streams_xattr_pread(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,