Merge pull request #6905 from bandi13/moreCodeSonarFixes

Don't nag about leaked resources
This commit is contained in:
JacobBarthelmeh
2023-11-01 14:46:02 -06:00
committed by GitHub
9 changed files with 43 additions and 8 deletions
+4
View File
@@ -470,6 +470,10 @@ int main(int argc, char* argv[])
if (ret != 0) {
fprintf(stderr, "%s\n", wc_GetErrorString(ret));
}
if (fp != stdin) {
fclose(fp);
}
return (ret == 0) ? 0 : 1;
}