diff options
author | Tamar Christina <tamar@zhox.com> | 2021-12-28 15:06:16 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-15 03:41:55 -0500 |
commit | 0dc723957d0fdb5909f145405b775efea0fe2f6e (patch) | |
tree | f6ee9f0a8ec293c4d6b60e6d6cb8cdb7b67ec082 /rts/win32/AsyncWinIO.c | |
parent | e2b60be8472ad5b7b6ef2b265b4a06d1b2b67c7d (diff) | |
download | haskell-0dc723957d0fdb5909f145405b775efea0fe2f6e.tar.gz |
winio: fix heap corruption and various leaks.
Diffstat (limited to 'rts/win32/AsyncWinIO.c')
-rw-r--r-- | rts/win32/AsyncWinIO.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c index 7fb71e92e7..5f61f815f3 100644 --- a/rts/win32/AsyncWinIO.c +++ b/rts/win32/AsyncWinIO.c @@ -147,7 +147,7 @@ There we initialize IO manager locale variables and. * call ioManagerStart() - * Creat a thread to execute "runner" + * Create a thread to execute "runner" We never truly shut down the IO Manager. While this means we might block forever on the IOPort if the IO Manager is no longer @@ -274,6 +274,7 @@ void shutdownAsyncWinIO(bool wait_threads) WaitForSingleObject (workerThread, INFINITE); } completionPortHandle = INVALID_HANDLE_VALUE; + CloseHandle (workerThread); workerThread = NULL; workerThreadId = 0; free (entries); |