Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1548d0ef
Commit
1548d0ef
authored
Jan 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed a leak in do_regexp_match_next function.
parent
6c4f35f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
regexp.c
dlls/jscript/regexp.c
+6
-2
No files found.
dlls/jscript/regexp.c
View file @
1548d0ef
...
...
@@ -3708,8 +3708,10 @@ static HRESULT RegExp_exec(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsig
TRACE
(
"
\n
"
);
hres
=
run_exec
(
ctx
,
jsthis
,
argc
?
argv
[
0
]
:
jsval_string
(
jsstr_empty
()),
&
string
,
&
match
,
&
parens
,
&
parens_cnt
,
&
b
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
heap_free
(
parens
);
return
hres
;
}
if
(
r
)
{
if
(
b
)
{
...
...
@@ -3931,8 +3933,10 @@ HRESULT regexp_string_match(script_ctx_t *ctx, jsdisp_t *re, jsstr_t *str, jsval
const
WCHAR
*
cp
=
str
->
str
;
hres
=
regexp_match_next
(
ctx
,
&
regexp
->
dispex
,
0
,
str
,
&
cp
,
&
parens
,
&
parens_size
,
&
parens_cnt
,
&
match
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
heap_free
(
parens
);
return
hres
;
}
if
(
r
)
{
if
(
hres
==
S_OK
)
{
...
...
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