Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdfp-pipe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvdfp-pipe
Commits
4a149499
Commit
4a149499
authored
Aug 06, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VDP removal at vcl.discard.
parent
0d278dbd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
arg.vtc
src/tests/arg.vtc
+1
-0
vdp.vtc
src/tests/vdp.vtc
+2
-0
vdfp_pipe.c
src/vdfp_pipe.c
+3
-2
No files found.
src/tests/arg.vtc
View file @
4a149499
...
...
@@ -109,4 +109,5 @@ varnish v1 -vcl { backend b None; }
# Tests oject finalization, freeing argv
varnish v1 -cli "vcl.discard vcl1"
varnish v1 -cli "vcl.discard vcl2"
delay 1
varnish v1 -cli "vcl.list"
src/tests/vdp.vtc
View file @
4a149499
...
...
@@ -142,4 +142,6 @@ varnish v1 -vcl { backend b None; }
# Tests the discard event, with removal of VDPs.
varnish v1 -cli "vcl.discard vcl1"
varnish v1 -cli "vcl.discard vcl2"
delay 1
varnish v1 -cli "vcl.list"
src/vdfp_pipe.c
View file @
4a149499
...
...
@@ -479,12 +479,13 @@ vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
if
(
map
->
vcl
==
ctx
->
vcl
&&
map
->
vdp
!=
NULL
)
{
VRT_RemoveVDP
(
ctx
,
map
->
vdp
);
free
(
TRUST_ME
(
map
->
vdp
));
map
->
vdp
=
NULL
;
prev_map
=
map
;
}
map
=
VRBT_NEXT
(
vdp_tree
,
&
tree_h
,
map
);
if
(
prev_map
!=
NULL
)
{
VRBT_REMOVE
(
vdp_tree
,
&
tree_h
,
map
);
FREE_OBJ
(
map
);
VRBT_REMOVE
(
vdp_tree
,
&
tree_h
,
prev_
map
);
FREE_OBJ
(
prev_
map
);
}
}
return
(
0
);
...
...
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