From: Jeremy Allison Date: Fri, 29 Jan 2021 19:38:07 +0000 (-0800) Subject: s3: smbd: Add missing lock free and file close in error path. X-Git-Tag: tevent-0.11.0~1866 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e79ff444e159dbbb61accf6aa0d6e2393673131;p=thirdparty%2Fsamba.git s3: smbd: Add missing lock free and file close in error path. Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon Feb 1 18:38:23 UTC 2021 on sn-devel-184 --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index faf1c67a5ea..721a48f3b5a 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4035,6 +4035,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, nt_errstr(status)); } } + TALLOC_FREE(lck); + fd_close(fsp); return NT_STATUS_NO_MEMORY; }