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
2ffcce16
Commit
2ffcce16
authored
Aug 08, 2022
by
Tim Clem
Committed by
Alexandre Julliard
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix leak of mach_host_self port.
parent
317085fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
system.c
dlls/ntdll/unix/system.c
+4
-1
No files found.
dlls/ntdll/unix/system.c
View file @
2ffcce16
...
...
@@ -2624,8 +2624,9 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
{
processor_cpu_load_info_data_t
*
pinfo
;
mach_msg_type_number_t
info_count
;
host_name_port_t
host
=
mach_host_self
();
if
(
host_processor_info
(
mach_host_self
()
,
if
(
host_processor_info
(
host
,
PROCESSOR_CPU_LOAD_INFO
,
&
cpus
,
(
processor_info_array_t
*
)
&
pinfo
,
...
...
@@ -2641,6 +2642,8 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
}
vm_deallocate
(
mach_task_self
(),
(
vm_address_t
)
pinfo
,
info_count
*
sizeof
(
natural_t
));
}
mach_port_deallocate
(
mach_task_self
(),
host
);
}
#elif defined(linux)
{
...
...
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