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
b3717a92
Commit
b3717a92
authored
Sep 19, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix memory leak in SymInitializeW() (Coverity).
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4100bac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dbghelp.c
dlls/dbghelp/dbghelp.c
+7
-6
No files found.
dlls/dbghelp/dbghelp.c
View file @
b3717a92
...
...
@@ -298,7 +298,8 @@ BOOL WINAPI SymInitializeW(HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeP
TRACE
(
"(%p %s %u)
\n
"
,
hProcess
,
debugstr_w
(
UserSearchPath
),
fInvadeProcess
);
if
(
process_find_by_handle
(
hProcess
)){
if
(
process_find_by_handle
(
hProcess
))
{
WARN
(
"the symbols for this process have already been initialized!
\n
"
);
/* MSDN says to only call this function once unless SymCleanup() has been called since the last call.
...
...
@@ -307,15 +308,15 @@ BOOL WINAPI SymInitializeW(HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeP
return
TRUE
;
}
pcs
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
pcs
));
if
(
!
pcs
)
return
FALSE
;
pcs
->
handle
=
hProcess
;
IsWow64Process
(
GetCurrentProcess
(),
&
wow64
);
if
(
!
IsWow64Process
(
hProcess
,
&
child_wow64
))
return
FALSE
;
pcs
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
pcs
));
if
(
!
pcs
)
return
FALSE
;
pcs
->
handle
=
hProcess
;
pcs
->
is_64bit
=
(
sizeof
(
void
*
)
==
8
||
wow64
)
&&
!
child_wow64
;
if
(
UserSearchPath
)
...
...
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