mirror of
https://github.com/reactos/CMake.git
synced 2025-01-26 22:07:24 +00:00
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:
parent
afa83eb4cf
commit
ee9fc4b1d3
@ -41,6 +41,7 @@ int main(int argc, char* argv[])
|
||||
if(!ofp)
|
||||
{
|
||||
fprintf(stderr, "Cannot open output file: \"%s\"\n", argv[2]);
|
||||
fclose(ifp);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user