fix resource leak in viewlog.c, closes #3485875

pull/1/head
Heiko Hund 2012-02-09 10:26:10 +00:00
parent 3670a4bd2a
commit 0bac9ed151
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,8 @@ void ViewLog(int config)
ShowLocalizedMsg(IDS_ERR_START_LOG_VIEWER, o.log_viewer);
}
CloseHandle(proc_info.hThread);
CloseHandle(proc_info.hProcess);
}
@ -113,4 +115,6 @@ void EditConfig(int config)
ShowLocalizedMsg(IDS_ERR_START_CONF_EDITOR, o.editor);
}
CloseHandle(proc_info.hThread);
CloseHandle(proc_info.hProcess);
}