mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
smbd: Fix a fd leak when closing a print file
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
9d2bf01537
commit
5988607d7f
@ -1542,6 +1542,7 @@ NTSTATUS close_file(struct smb_request *req, files_struct *fsp,
|
||||
} else if (fsp->print_file != NULL) {
|
||||
/* FIXME: return spool errors */
|
||||
print_spool_end(fsp, close_type);
|
||||
fd_close(fsp);
|
||||
file_free(req, fsp);
|
||||
status = NT_STATUS_OK;
|
||||
} else if (!fsp->fsp_flags.is_fsa) {
|
||||
|
Loading…
Reference in New Issue
Block a user