Bugfix: Don’t leak file descriptor
This commit is contained in:
parent
7801cd7a03
commit
370715d1a8
|
@ -369,6 +369,7 @@ void parse_file(const char *f) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(fstr);
|
fclose(fstr);
|
||||||
|
close(fd);
|
||||||
|
|
||||||
/* For every custom variable, see how often it occurs in the file and
|
/* For every custom variable, see how often it occurs in the file and
|
||||||
* how much extra bytes it requires when replaced. */
|
* how much extra bytes it requires when replaced. */
|
||||||
|
|
Loading…
Reference in New Issue