From: Jeremy Allison Date: Wed, 23 Jun 2021 00:16:09 +0000 (-0700) Subject: s3: VFS: streams_xattr: In streams_xattr_pwrite() - remove smb_fname_base. X-Git-Tag: tevent-0.11.0~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8190ce3d87be016709f3ddcd8bc763d3418ead9;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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,