From 0bac9ed151de7ea25b2516ff4288afb1ed2d6e26 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Thu, 9 Feb 2012 10:26:10 +0000 Subject: [PATCH] fix resource leak in viewlog.c, closes #3485875 --- viewlog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/viewlog.c b/viewlog.c index 539e6fa..b225a05 100644 --- a/viewlog.c +++ b/viewlog.c @@ -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); }