I have checked the source code with infer, it seems there is a Resource Leak in src/filelist.c:182.
src/filelist.c:182: error: Resource Leak
resource of type `_IO_FILE` acquired by call to `fdopen()` at line 172, column 12 is not released after line 182, column 9.
180. while ((readsize = fread(buf, sizeof(char), sizeof(buf), stdin)) > 0) {
181. if (fwrite(buf, sizeof(char), readsize, outfile) < readsize) {
182. free(sfn);
^
183. return;
184. }
I suppose it's better to call fclose(outfile); even the some errors happen when writing the file.
I have checked the source code with infer, it seems there is a
Resource Leak
in src/filelist.c:182.I suppose it's better to call
fclose(outfile);
even the some errors happen when writing the file.