Bugfix: Don’t leak file descriptors (Thanks InfraRed)
This commit is contained in:
parent
aa52986cfe
commit
0c60ae19cb
@ -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
Block a user