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
Kill "if" before free, and useless cast of free argument.
[simgrid.git]
/
src
/
xbt
/
graphxml_parse.c
diff --git
a/src/xbt/graphxml_parse.c
b/src/xbt/graphxml_parse.c
index
e5700e4
..
89582e7
100644
(file)
--- a/
src/xbt/graphxml_parse.c
+++ b/
src/xbt/graphxml_parse.c
@@
-103,10
+103,8
@@
void xbt_graph_parse_open(const char *file)
void xbt_graph_parse_close(void)
{
void xbt_graph_parse_close(void)
{
- if (xbt_graph_input_buffer_stack)
- xbt_dynar_free(&xbt_graph_input_buffer_stack);
- if (xbt_graph_file_to_parse_stack)
- xbt_dynar_free(&xbt_graph_file_to_parse_stack);
+ xbt_dynar_free(&xbt_graph_input_buffer_stack);
+ xbt_dynar_free(&xbt_graph_file_to_parse_stack);
if (xbt_graph_file_to_parse) {
xbt_graph_parse__delete_buffer(xbt_graph_input_buffer);
if (xbt_graph_file_to_parse) {
xbt_graph_parse__delete_buffer(xbt_graph_input_buffer);