]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix a resource leak in create_file_unixpath()
authorRalph Boehme <slow@samba.org>
Mon, 1 Feb 2021 11:01:01 +0000 (12:01 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 5 Feb 2021 06:22:35 +0000 (06:22 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 721a48f3b5a6d5f952e8ef1a47f336f6be14060d..7c51b0ecd61edd60c00cf9c2ad3e868a7f99569e 100644 (file)
@@ -5764,6 +5764,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
                                        "for base %s failed: "
                                        "%s\n", smb_fname->base_name,
                                        nt_errstr(status)));
+                               TALLOC_FREE(smb_fname_base);
                                goto fail;
                        }
                }