Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
21ab6938
Commit
21ab6938
authored
Jun 21, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-361 - Fix handle leak in os_thread_create (Windows)
parent
2c6e0a8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
storage/innobase/os/os0thread.c
storage/innobase/os/os0thread.c
+4
-2
storage/xtradb/os/os0thread.c
storage/xtradb/os/os0thread.c
+4
-2
No files found.
storage/innobase/os/os0thread.c
View file @
21ab6938
...
@@ -136,8 +136,10 @@ os_thread_create(
...
@@ -136,8 +136,10 @@ os_thread_create(
if
(
thread_id
)
{
if
(
thread_id
)
{
*
thread_id
=
win_thread_id
;
*
thread_id
=
win_thread_id
;
}
}
if
(
thread
)
{
return
(
thread
);
CloseHandle
(
thread
);
}
return
((
os_thread_t
)
win_thread_id
);
#else
#else
int
ret
;
int
ret
;
os_thread_t
pthread
;
os_thread_t
pthread
;
...
...
storage/xtradb/os/os0thread.c
View file @
21ab6938
...
@@ -136,8 +136,10 @@ os_thread_create(
...
@@ -136,8 +136,10 @@ os_thread_create(
if
(
thread_id
)
{
if
(
thread_id
)
{
*
thread_id
=
win_thread_id
;
*
thread_id
=
win_thread_id
;
}
}
if
(
thread
)
{
return
(
thread
);
CloseHandle
(
thread
);
}
return
((
os_thread_t
)
win_thread_id
);
#else
#else
int
ret
;
int
ret
;
os_thread_t
pthread
;
os_thread_t
pthread
;
...
...
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