]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: streams_xattr: In streams_xattr_ftruncate() - remove smb_fname_base.
authorJeremy Allison <jra@samba.org>
Wed, 23 Jun 2021 00:38:46 +0000 (17:38 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
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>
source3/modules/vfs_streams_xattr.c

index 447b6a1396f5057486195a163a921c1b62b614d2..d49cc675ce563649172fa238f60f7b3e1ac5f3e4 100644 (file)
@@ -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,