A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Close file after use.
[simgrid.git]
/
src
/
xbt
/
automaton
/
automatonparse_promela.c
diff --git
a/src/xbt/automaton/automatonparse_promela.c
b/src/xbt/automaton/automatonparse_promela.c
index
8f4fb02
..
7121c12
100644
(file)
--- a/
src/xbt/automaton/automatonparse_promela.c
+++ b/
src/xbt/automaton/automatonparse_promela.c
@@
-67,4
+67,5
@@
void xbt_automaton_load(xbt_automaton_t a, const char *file)
if (yyin == NULL)
xbt_die("Failed to open automaton file `%s': %s", file, strerror(errno));
yyparse();
+ fclose(yyin);
}