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
317085fd
Commit
317085fd
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_thread_self port.
parent
1a580f93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+4
-1
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
317085fd
...
@@ -3052,7 +3052,10 @@ static void *mac_thread_gsbase(void)
...
@@ -3052,7 +3052,10 @@ static void *mac_thread_gsbase(void)
unsigned
int
info_count
=
THREAD_IDENTIFIER_INFO_COUNT
;
unsigned
int
info_count
=
THREAD_IDENTIFIER_INFO_COUNT
;
static
int
gsbase_offset
=
-
1
;
static
int
gsbase_offset
=
-
1
;
kern_return_t
kr
=
thread_info
(
mach_thread_self
(),
THREAD_IDENTIFIER_INFO
,
(
thread_info_t
)
&
tiinfo
,
&
info_count
);
mach_port_t
self
=
mach_thread_self
();
kern_return_t
kr
=
thread_info
(
self
,
THREAD_IDENTIFIER_INFO
,
(
thread_info_t
)
&
tiinfo
,
&
info_count
);
mach_port_deallocate
(
mach_task_self
(),
self
);
if
(
kr
==
KERN_SUCCESS
)
return
(
void
*
)
tiinfo
.
thread_handle
;
if
(
kr
==
KERN_SUCCESS
)
return
(
void
*
)
tiinfo
.
thread_handle
;
if
(
gsbase_offset
<
0
)
if
(
gsbase_offset
<
0
)
...
...
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