Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d1a40539
Commit
d1a40539
authored
Apr 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed func->funcs leak.
parent
64a3f507
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
compile.c
dlls/jscript/compile.c
+2
-1
No files found.
dlls/jscript/compile.c
View file @
d1a40539
...
...
@@ -1812,9 +1812,10 @@ static HRESULT compile_function(compiler_ctx_t *ctx, source_elements_t *source,
func
->
expr
=
func_expr
;
func
->
funcs
=
heap_alloc_zero
(
func
->
func_cnt
*
sizeof
(
*
func
->
funcs
));
func
->
funcs
=
compiler_alloc
(
ctx
->
code
,
func
->
func_cnt
*
sizeof
(
*
func
->
funcs
));
if
(
!
func
->
funcs
)
return
E_OUTOFMEMORY
;
memset
(
func
->
funcs
,
0
,
func
->
func_cnt
*
sizeof
(
*
func
->
funcs
));
for
(
iter
=
source
->
functions
,
i
=
0
;
iter
;
iter
=
iter
->
next
,
i
++
)
{
hres
=
compile_function
(
ctx
,
iter
->
expr
->
source_elements
,
iter
->
expr
,
FALSE
,
func
->
funcs
+
i
);
...
...
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