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
a3555480
Unverified
Commit
a3555480
authored
Dec 29, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to clarify for coverity how vsl_delseg() works
Ref CID 1430127, CID 1430118
parent
4c987be0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
vsm.c
lib/libvarnishapi/vsm.c
+9
-4
No files found.
lib/libvarnishapi/vsm.c
View file @
a3555480
...
...
@@ -304,6 +304,7 @@ static void
vsm_delset
(
struct
vsm_set
**
p
)
{
struct
vsm_set
*
vs
;
struct
vsm_seg
*
vg
;
AN
(
p
);
vs
=
*
p
;
...
...
@@ -312,10 +313,14 @@ vsm_delset(struct vsm_set **p)
closefd
(
&
vs
->
fd
);
if
(
vs
->
dfd
>=
0
)
closefd
(
&
vs
->
dfd
);
while
(
!
VTAILQ_EMPTY
(
&
vs
->
stale
))
vsm_delseg
(
VTAILQ_FIRST
(
&
vs
->
stale
),
0
);
while
(
!
VTAILQ_EMPTY
(
&
vs
->
segs
))
vsm_delseg
(
VTAILQ_FIRST
(
&
vs
->
segs
),
0
);
while
((
vg
=
VTAILQ_FIRST
(
&
vs
->
stale
))
!=
NULL
)
{
AN
(
vg
->
flags
&
VSM_FLAG_STALE
);
vsm_delseg
(
vg
,
0
);
}
while
((
vg
=
VTAILQ_FIRST
(
&
vs
->
segs
))
!=
NULL
)
{
AZ
(
vg
->
flags
&
VSM_FLAG_STALE
);
vsm_delseg
(
vg
,
0
);
}
assert
(
VTAILQ_EMPTY
(
&
vs
->
clusters
));
VLU_Destroy
(
&
vs
->
vlu
);
FREE_OBJ
(
vs
);
...
...
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