cygcheck: Close with pclose what has been opened with popen

Fixes Coverity CID 66900

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-10-22 22:14:34 +02:00
parent 5c758bf910
commit 46c472a1c1
1 changed files with 1 additions and 1 deletions

View File

@ -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