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:
parent
ab41b3612a
commit
fd8d0cba3f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user