Bugfix: Don’t leak file descriptors (Thanks InfraRed)
This commit is contained in:
parent
c1dc551efc
commit
23d7460040
|
@ -184,6 +184,8 @@ void parse_file(const char *f) {
|
|||
SLIST_REMOVE_HEAD(&variables, variables);
|
||||
FREE(current);
|
||||
}
|
||||
fclose(fstr);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
%}
|
||||
|
|
Loading…
Reference in New Issue