[Client] [WSL] Add missed CloseHandle()

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2018-06-24 20:15:28 +03:00
parent 5e926bbdac
commit ba1c187445
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
1 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,7 @@ int get_wsl_information(bool& wsl_available, WSLS& wsls) {
if (create_wsl_process(distro, command_uname_s, &handle)) {
os_name = read_from_pipe(handle);
strip_whitespace(os_name);
CloseHandle(handle);
}
}
@ -335,6 +336,7 @@ int get_wsl_information(bool& wsl_available, WSLS& wsls) {
if (create_wsl_process(distro, command_uname_r ,&handle)) {
os_version_extra = read_from_pipe(handle);
strip_whitespace(os_version_extra);
CloseHandle(handle);
}
}