From: Jeremy Allison Date: Wed, 23 Jun 2021 00:38:46 +0000 (-0700) Subject: s3: VFS: streams_xattr: In streams_xattr_ftruncate() - remove smb_fname_base. X-Git-Tag: tevent-0.11.0~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3609fb89fe7a9ee79c1496014b81fc2dcba795;p=thirdparty%2Fsamba.git s3: VFS: streams_xattr: In streams_xattr_ftruncate() - 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 447b6a1396f..d49cc675ce5 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -1255,7 +1255,6 @@ static int streams_xattr_ftruncate(struct vfs_handle_struct *handle, NTSTATUS status; struct stream_io *sio = (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp); - struct smb_filename *smb_fname_base = NULL; DEBUG(10, ("streams_xattr_ftruncate called for file %s offset %.0f\n", fsp_str_dbg(fsp), (double)offset)); @@ -1268,18 +1267,6 @@ static int streams_xattr_ftruncate(struct 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,