1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

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>
This commit is contained in:
Jeremy Allison
2021-06-22 17:20:08 -07:00
committed by Ralph Boehme
parent fbfd4183d6
commit 435c3f9ec1

View File

@ -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,