1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

ntvfs: Fix CID 1034883 Resource leak

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2024-09-30 11:01:04 +02:00
parent ab41b3612a
commit fd8d0cba3f

View File

@ -414,7 +414,10 @@ do_open:
}
status = ntvfs_handle_new(ntvfs, req, &handle);
NT_STATUS_NOT_OK_RETURN(status);
if (!NT_STATUS_IS_OK(status)) {
close(fd);
return status;
}
f = talloc(handle, struct svfs_file);
if (f == NULL) {