From 46c472a1c15a61af1db656f6b55af9b4e5e450d6 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 22 Oct 2016 22:14:34 +0200 Subject: [PATCH] cygcheck: Close with pclose what has been opened with popen Fixes Coverity CID 66900 Signed-off-by: Corinna Vinschen --- winsup/utils/cygcheck.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index f6adf518a..c9eb8a6b8 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -1192,7 +1192,7 @@ dump_sysinfo_services () puts ("The version of cygrunsrv installed is too old to dump service info.\n"); return; } - fclose (f); + pclose (f); /* For verbose mode, just run cygrunsrv --list --verbose and copy output verbatim; otherwise run cygrunsrv --list and then cygrunsrv --query for