mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-31 12:16:11 -05:00
MSVC code analyzer complains that thread handle was being leaked. Add CloseHandle for it, and while at it make sure to do the same also in success for the process one. Includes some other minor tweaks that don't change functionality to either simplify the code or clean other similar warnings. Helped-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>