From: Stefan Metzmacher Date: Thu, 4 Jun 2009 10:46:30 +0000 (+0200) Subject: s3:smbd: fix potential fsp leak if print_fsp_open() fails X-Git-Tag: tdb-1.1.5~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=427235eb0e2559c07189713e44828e24e3f45bf8;p=thirdparty%2Fsamba.git s3:smbd: fix potential fsp leak if print_fsp_open() fails metze --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 0c0d647f712..70d5537e042 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;