Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
70ec0a57
Commit
70ec0a57
authored
Feb 12, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two resource leaks found by Coverity, both insignificant and
both introduced yesterday.
parent
dadd7976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+3
-0
No files found.
bin/varnishd/mgt/mgt_vcc.c
View file @
70ec0a57
...
...
@@ -323,6 +323,7 @@ mgt_vcc_compile(struct vcc_priv *vp, struct vsb *sb, int C_flag)
csrc
=
VFIL_readfile
(
NULL
,
vp
->
srcfile
,
NULL
);
AN
(
csrc
);
VSB_cat
(
sb
,
csrc
);
free
(
csrc
);
}
subs
=
VSUB_run
(
sb
,
run_cc
,
vp
,
"C-compiler"
,
10
);
...
...
@@ -395,10 +396,12 @@ mgt_VccCompile(struct cli *cli, const char *vclname, const char *vclsrc,
"vcl.load %s %s
\n
"
,
vclname
,
vp
.
libfile
))
{
mgt_vcc_add
(
vclname
,
vp
.
libfile
);
free
(
vp
.
libfile
);
free
(
p
);
return
;
}
VCLI_Out
(
cli
,
"%s"
,
p
);
free
(
p
);
VCLI_SetResult
(
cli
,
CLIS_PARAM
);
(
void
)
unlink
(
vp
.
libfile
);
free
(
vp
.
libfile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment