From: Ralph Boehme Date: Mon, 1 Feb 2021 11:01:01 +0000 (+0100) Subject: smbd: fix a resource leak in create_file_unixpath() X-Git-Tag: tevent-0.11.0~1828 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e636e20f90d4ee221ce6e20cab15a3cecb03850f;p=thirdparty%2Fsamba.git smbd: fix a resource leak in create_file_unixpath() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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; } }