Don't leak this descriptor (thanks dothebart).

Note that fclose closes the file descriptor frees the stream.
This commit is contained in:
Fernando Tarlá Cardoso Lemos 2011-02-27 20:23:54 -03:00 committed by Michael Stapelberg
parent 269d360f30
commit beaa85ceb9
1 changed files with 1 additions and 0 deletions

View File

@ -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. */