diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-06-04 12:46:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-04 22:41:16 +0200 |
commit | 427235eb0e2559c07189713e44828e24e3f45bf8 (patch) | |
tree | 9bced31c2bf10bc9e17bcb3c202a7c717eaaffae | |
parent | 5e67aa92f6f715a4375d769ca1b24145cf6d41bb (diff) | |
download | samba-427235eb0e2559c07189713e44828e24e3f45bf8.tar.gz samba-427235eb0e2559c07189713e44828e24e3f45bf8.tar.bz2 samba-427235eb0e2559c07189713e44828e24e3f45bf8.zip |
s3:smbd: fix potential fsp leak if print_fsp_open() fails
metze
-rw-r--r-- | source3/smbd/reply.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 0c0d647f71..70d5537e04 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4953,6 +4953,7 @@ void reply_printopen(struct smb_request *req) status = print_fsp_open(req, conn, NULL, req->vuid, fsp, &sbuf); if (!NT_STATUS_IS_OK(status)) { + file_free(req, fsp); reply_nterror(req, status); END_PROFILE(SMBsplopen); return; |