]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Do an early TALLOC_FREE in streams_xattr_openat()
authorVolker Lendecke <vl@samba.org>
Fri, 29 Aug 2025 13:57:39 +0000 (15:57 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Oct 2025 17:33:29 +0000 (17:33 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_xattr.c

index 7ac67d3fb98317649cb8f9d9c2dc4bac743bba6c..2e070ce4e7b69ebbf730fb8d0b9fee9d81c0c219 100644 (file)
@@ -458,6 +458,8 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle,
                set_empty_xattr = true;
        }
 
+       TALLOC_FREE(ea.value.data);
+
        if (how->flags & O_TRUNC) {
                set_empty_xattr = true;
        }