diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 23:14:34 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 23:14:34 +0300 |
commit | 46c472a1c15a61af1db656f6b55af9b4e5e450d6 (patch) | |
tree | 6014b6947059aa8e51b0c00316176fdd44f98669 /winsup/utils/cygcheck.cc | |
parent | 5c758bf910a1531c3e06febe1eb759de4a1b6c77 (diff) |
cygcheck: Close with pclose what has been opened with popen
Fixes Coverity CID 66900
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r-- | winsup/utils/cygcheck.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |