1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3: smbd: Add missing lock free and file close in error path.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Feb  1 18:38:23 UTC 2021 on sn-devel-184
This commit is contained in:
Jeremy Allison 2021-01-29 11:38:07 -08:00
parent e14fc159a2
commit 1e79ff444e

View File

@ -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;
}