Don't leak this descriptor (thanks dothebart).
Note that fclose closes the file descriptor frees the stream.
This commit is contained in:
committed by
Michael Stapelberg
parent
269d360f30
commit
beaa85ceb9
@ -101,6 +101,7 @@ void parse_file(const char *f) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
fclose(fstr);
|
||||
|
||||
/* For every custom variable, see how often it occurs in the file and
|
||||
* how much extra bytes it requires when replaced. */
|
||||
|
Reference in New Issue
Block a user