git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e67aa9
)
s3:smbd: fix potential fsp leak if print_fsp_open() fails
author
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Jun 2009 10:46:30 +0000
(12:46 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Jun 2009 20:41:16 +0000
(22:41 +0200)
metze
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 0c0d647f71257fb4aab078c957e6ad443b19502d..70d5537e042f08f574d38a743c32865db2bd2578 100644
(file)
--- 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;