From e636e20f90d4ee221ce6e20cab15a3cecb03850f Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 1 Feb 2021 12:01:01 +0100 Subject: [PATCH] smbd: fix a resource leak in create_file_unixpath() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 721a48f3b5a..7c51b0ecd61 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; } } -- 2.47.3