Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
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
Nils Goroll
libvmod-re2
Commits
82f84eaa
Commit
82f84eaa
authored
Jun 03, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plug a leak in error exits from the match() function.
parent
cd4c072f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vmod_re2.c
src/vmod_re2.c
+2
-0
No files found.
src/vmod_re2.c
View file @
82f84eaa
...
...
@@ -711,6 +711,7 @@ vmod_match(VRT_CTX, struct vmod_priv *priv, VCL_STRING pattern,
if
((
err
=
vre2_ngroups
(
vre2
,
&
ngroups
))
!=
NULL
)
{
VERR
(
ctx
,
"Cannot obtain number of capturing groups: "
"%s"
,
pattern
,
subject
,
err
);
vre2_fini
(
&
vre2
);
return
0
;
}
assert
(
ngroups
>=
0
);
...
...
@@ -720,6 +721,7 @@ vmod_match(VRT_CTX, struct vmod_priv *priv, VCL_STRING pattern,
==
NULL
)
{
VERRNOMEM
(
ctx
,
ERR_PREFIX
"allocating match data"
,
pattern
,
subject
);
vre2_fini
(
&
vre2
);
return
0
;
}
priv
->
priv
=
task_match
;
...
...
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