]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_catia: Fix a memory leak
authorVolker Lendecke <vl@samba.org>
Tue, 17 Oct 2017 09:28:36 +0000 (11:28 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:03 +0000 (08:43 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13090

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit e77b7aff86ab1cb603f59961f2f5689e4dc770ea)

source3/modules/vfs_catia.c

index 3638f6b9167168ea92e9daa21c4a7da10cb19369..3eb64bd14773c5594ae2cad6f2ed6b4eb9e1a860 100644 (file)
@@ -2217,6 +2217,7 @@ static NTSTATUS catia_readdir_attr(struct vfs_handle_struct *handle,
        status = SMB_VFS_NEXT_READDIR_ATTR(handle, smb_fname, mem_ctx, pattr_data);
 
        TALLOC_FREE(smb_fname);
+       TALLOC_FREE(fname);
        return status;
 }