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
e4f15a29
Commit
e4f15a29
authored
Feb 06, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Feb 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Move memory allocation to avoid a memory leak (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3804b99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
task_scheduler.c
dlls/mstask/task_scheduler.c
+4
-4
No files found.
dlls/mstask/task_scheduler.c
View file @
e4f15a29
...
...
@@ -143,10 +143,6 @@ static HRESULT WINAPI EnumWorkItems_Next(IEnumWorkItems *iface, ULONG count, LPW
enumerated
=
0
;
list
=
NULL
;
allocated
=
64
;
list
=
CoTaskMemAlloc
(
allocated
*
sizeof
(
list
[
0
]));
if
(
!
list
)
return
E_OUTOFMEMORY
;
if
(
This
->
handle
==
INVALID_HANDLE_VALUE
)
{
GetWindowsDirectoryW
(
path
,
MAX_PATH
);
...
...
@@ -161,6 +157,10 @@ static HRESULT WINAPI EnumWorkItems_Next(IEnumWorkItems *iface, ULONG count, LPW
return
S_FALSE
;
}
allocated
=
64
;
list
=
CoTaskMemAlloc
(
allocated
*
sizeof
(
list
[
0
]));
if
(
!
list
)
return
E_OUTOFMEMORY
;
do
{
if
(
is_file
(
&
data
))
...
...
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