vfs_catia: Fix a memory leak
authorVolker Lendecke <vl@samba.org>
Tue, 17 Oct 2017 09:28:36 +0000 (11:28 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 17 Oct 2017 12:55:07 +0000 (14:55 +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>
source3/modules/vfs_catia.c

index 9651cd3bed312447b82d33b60df312d3b5a1e936..878cd5ad05ce432dfc04bf60b42d91e0bd44a7dc 100644 (file)
@@ -2406,6 +2406,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;
 }