mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:13:38 +03:00
servers: fix HANDLE leak in UWP builds
Also: shorten code. Reported by Copilot Bug: https://github.com/curl/curl/pull/22487#pullrequestreview-4863399903 Closes #22489
This commit is contained in:
parent
90325ff044
commit
7babac8690
1 changed files with 2 additions and 5 deletions
|
|
@ -696,12 +696,9 @@ void restore_signal_handlers(bool keep_sigalrm)
|
|||
}
|
||||
}
|
||||
}
|
||||
if(exit_event) {
|
||||
if(CloseHandle(exit_event)) {
|
||||
exit_event = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if(exit_event && CloseHandle(exit_event))
|
||||
exit_event = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue