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
be7d170d
Commit
be7d170d
authored
Feb 26, 2016
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to assign NULL after VSB_destroy
parent
6ec734af
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
10 deletions
+1
-10
cache_esi_parse.c
bin/varnishd/cache/cache_esi_parse.c
+0
-3
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+0
-1
vtc_logexp.c
bin/varnishtest/vtc_logexp.c
+1
-3
cli_serve.c
lib/libvarnish/cli_serve.c
+0
-1
vsl.c
lib/libvarnishapi/vsl.c
+0
-1
vsm.c
lib/libvarnishapi/vsm.c
+0
-1
No files found.
bin/varnishd/cache/cache_esi_parse.c
View file @
be7d170d
...
...
@@ -537,9 +537,7 @@ vep_do_include(struct vep_state *vep, enum dowhat what)
}
#undef R
VSB_printf
(
vep
->
vsb
,
"%c"
,
0
);
VSB_destroy
(
&
vep
->
include_src
);
vep
->
include_src
=
NULL
;
}
/*---------------------------------------------------------------------
...
...
@@ -887,7 +885,6 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
if
(
vep
->
attr_vsb
!=
NULL
)
{
AZ
(
VSB_finish
(
vep
->
attr_vsb
));
VSB_destroy
(
&
vep
->
attr_vsb
);
vep
->
attr_vsb
=
NULL
;
}
}
else
if
(
p
<
e
)
{
vep
->
attr_delim
=
0
;
...
...
bin/varnishd/mgt/mgt_child.c
View file @
be7d170d
...
...
@@ -128,7 +128,6 @@ static void
mgt_panic_clear
(
void
)
{
VSB_destroy
(
&
child_panic
);
child_panic
=
NULL
;
}
void
__match_proto__
(
cli_func_t
)
...
...
bin/varnishtest/vtc_logexp.c
View file @
be7d170d
...
...
@@ -528,10 +528,8 @@ cmd_logexp(CMD_ARGS)
vtc_log
(
le
->
vl
,
0
,
"Missing -v argument"
);
return
;
}
if
(
le
->
n_arg
!=
NULL
)
{
if
(
le
->
n_arg
!=
NULL
)
VSB_destroy
(
&
le
->
n_arg
);
le
->
n_arg
=
NULL
;
}
vsb
=
VSB_new_auto
();
AN
(
vsb
);
AZ
(
VSB_printf
(
vsb
,
"%s/%s"
,
tmpdir
,
av
[
1
]));
...
...
lib/libvarnish/cli_serve.c
View file @
be7d170d
...
...
@@ -453,7 +453,6 @@ cls_vlu(void *priv, const char *p)
free
(
cli
->
cmd
);
cli
->
cmd
=
NULL
;
VSB_destroy
(
&
cfd
->
last_arg
);
cfd
->
last_arg
=
NULL
;
cfd
->
last_idx
=
0
;
return
(
i
);
}
...
...
lib/libvarnishapi/vsl.c
View file @
be7d170d
...
...
@@ -161,7 +161,6 @@ VSL_ResetError(struct VSL_data *vsl)
if
(
vsl
->
diag
==
NULL
)
return
;
VSB_destroy
(
&
vsl
->
diag
);
vsl
->
diag
=
NULL
;
}
static
int
...
...
lib/libvarnishapi/vsm.c
View file @
be7d170d
...
...
@@ -124,7 +124,6 @@ VSM_ResetError(struct VSM_data *vd)
if
(
vd
->
diag
==
NULL
)
return
;
VSB_destroy
(
&
vd
->
diag
);
vd
->
diag
=
NULL
;
}
/*--------------------------------------------------------------------*/
...
...
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