summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-04 12:46:30 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-04 22:41:16 +0200
commit427235eb0e2559c07189713e44828e24e3f45bf8 (patch)
tree9bced31c2bf10bc9e17bcb3c202a7c717eaaffae
parent5e67aa92f6f715a4375d769ca1b24145cf6d41bb (diff)
downloadsamba-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.c1
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;