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
378d557d
Commit
378d557d
authored
Jun 24, 2015
by
Ken Thomases
Committed by
Alexandre Julliard
Jun 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix a leak of the Mach-O module structure by adding a module_remove callback.
parent
8430ebc6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
macho_module.c
dlls/dbghelp/macho_module.c
+9
-1
No files found.
dlls/dbghelp/macho_module.c
View file @
378d557d
...
...
@@ -943,6 +943,14 @@ BOOL macho_fetch_file_info(const WCHAR* name, DWORD_PTR* base,
}
/******************************************************************
* macho_module_remove
*/
static
void
macho_module_remove
(
struct
process
*
pcs
,
struct
module_format
*
modfmt
)
{
HeapFree
(
GetProcessHeap
(),
0
,
modfmt
);
}
/******************************************************************
* macho_load_file
*
* Loads the information for Mach-O module stored in 'filename'.
...
...
@@ -1036,7 +1044,7 @@ static BOOL macho_load_file(struct process* pcs, const WCHAR* filename,
macho_info
->
module
->
format_info
[
DFI_MACHO
]
=
modfmt
;
modfmt
->
module
=
macho_info
->
module
;
modfmt
->
remove
=
NULL
;
modfmt
->
remove
=
macho_module_remove
;
modfmt
->
loc_compute
=
NULL
;
modfmt
->
u
.
macho_info
=
macho_module_info
;
...
...
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