From 427235eb0e2559c07189713e44828e24e3f45bf8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 4 Jun 2009 12:46:30 +0200 Subject: s3:smbd: fix potential fsp leak if print_fsp_open() fails metze --- source3/smbd/reply.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit