s3: VFS: nfs4_acls. Add missing TALLOC_FREE(frame) in error path.
authorPeter Eriksson <pen@lysator.liu.se>
Tue, 23 Feb 2021 20:13:37 +0000 (12:13 -0800)
committerDavid Mulder <dmulder@samba.org>
Thu, 25 Feb 2021 20:46:02 +0000 (20:46 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14648

Signed-off-by: Peter Eriksson <pen@lysator.liu.se>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
Autobuild-User(master): David Mulder <dmulder@samba.org>
Autobuild-Date(master): Thu Feb 25 20:46:02 UTC 2021 on sn-devel-184

source3/modules/nfs4_acls.c

index 7f32e6816948992ca2fbf1114ea9c5f41a7ff841..c7808037a09f838aaaca66d264fc25a2a9ef47b3 100644 (file)
@@ -997,6 +997,7 @@ NTSTATUS smb_set_nt_acl_nfs4(vfs_handle_struct *handle, files_struct *fsp,
        }
 
        if (security_descriptor_with_ms_nfs(psd)) {
+               TALLOC_FREE(frame);
                return NT_STATUS_OK;
        }