git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddb84ef
)
smbd: Fix CID 1273088 Resource leak
author
Volker Lendecke
<vl@samba.org>
Tue, 3 Mar 2015 14:53:34 +0000
(15:53 +0100)
committer
Ralph Böhme
<slow@samba.org>
Tue, 3 Mar 2015 16:34:39 +0000
(17:34 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_setinfo.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_setinfo.c
b/source3/smbd/smb2_setinfo.c
index e6981d120b552b4030d87c6bee14132ca0bb3961..3f7bbec94b549c95be304e7bd4053b433ebd2179 100644
(file)
--- a/
source3/smbd/smb2_setinfo.c
+++ b/
source3/smbd/smb2_setinfo.c
@@
-474,6
+474,7
@@
static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
lck = get_existing_share_mode_lock(mem_ctx,
fsp->file_id);
if (lck == NULL) {
+ SAFE_FREE(data);
tevent_req_nterror(req,
NT_STATUS_UNSUCCESSFUL);
return tevent_req_post(req, ev);