KWSys: Fix leaked FILE in EncodeExecutable error case

This leak was detected by cppcheck static analysis.

Author: Hans Johnson <hans-johnson@uiowa.edu>
Change-Id: I1b81cb245acb9a6033f24ecc8d1452ca4df8371a
This commit is contained in:
Brad King 2011-05-09 08:36:59 -04:00
parent afa83eb4cf
commit ee9fc4b1d3
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ int main(int argc, char* argv[])
if(!ofp) if(!ofp)
{ {
fprintf(stderr, "Cannot open output file: \"%s\"\n", argv[2]); fprintf(stderr, "Cannot open output file: \"%s\"\n", argv[2]);
fclose(ifp);
return 2; return 2;
} }