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
cd1f75af
Commit
cd1f75af
authored
Aug 04, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VSB_destroy() where applicable
parent
39bcda5c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+1
-1
cache_proxy_proto.c
bin/varnishd/proxy/cache_proxy_proto.c
+1
-1
vsb_test.c
lib/libvarnish/vsb_test.c
+1
-1
vmod_vtc.c
lib/libvmod_vtc/vmod_vtc.c
+1
-1
No files found.
bin/varnishd/mgt/mgt_param.c
View file @
cd1f75af
...
...
@@ -738,7 +738,7 @@ MCF_ParamConf(enum mcf_which_e which, const char * const param,
va_end
(
ap
);
AZ
(
VSB_finish
(
vsb
));
mcf_dyn_vsb
(
which
,
pp
,
vsb
);
VSB_de
lete
(
vsb
);
VSB_de
stroy
(
&
vsb
);
}
/*--------------------------------------------------------------------*/
...
...
bin/varnishd/proxy/cache_proxy_proto.c
View file @
cd1f75af
...
...
@@ -755,7 +755,7 @@ VPX_Send_Proxy(int fd, int version, const struct sess *sp)
version
==
2
?
VSB_QUOTE_HEX
:
0
);
AZ
(
VSB_finish
(
vsb2
));
VSL
(
SLT_Debug
,
999
,
"PROXY_HDR %s"
,
VSB_data
(
vsb2
));
VSB_de
lete
(
vsb2
);
VSB_de
stroy
(
&
vsb2
);
return
(
r
);
}
...
...
lib/libvarnish/vsb_test.c
View file @
cd1f75af
...
...
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
printf
(
"
\n
"
);
VSB_clear
(
vsb
);
}
VSB_de
lete
(
vsb
);
VSB_de
stroy
(
&
vsb
);
printf
(
"error is %i
\n
"
,
err
);
return
(
err
);
}
...
...
lib/libvmod_vtc/vmod_vtc.c
View file @
cd1f75af
...
...
@@ -362,7 +362,7 @@ vmod_proxy_header(VRT_CTX, VCL_ENUM venum, VCL_IP client, VCL_IP server,
VRT_Format_Proxy
(
vsb
,
version
,
client
,
server
,
authority
);
l
=
VSB_len
(
vsb
);
h
=
WS_Copy
(
ctx
->
ws
,
VSB_data
(
vsb
),
l
);
VSB_de
lete
(
vsb
);
VSB_de
stroy
(
&
vsb
);
if
(
h
==
NULL
)
{
VRT_fail
(
ctx
,
"proxy_header: out of workspace"
);
...
...
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