X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ee7e9c2e455536ab817ae0136acfbb53822eecd..7141af752d0f9389c4da1c42a151c16369c70f2a:/src/xbt/graph.c diff --git a/src/xbt/graph.c b/src/xbt/graph.c index b52ecaa21d..8fdec17743 100644 --- a/src/xbt/graph.c +++ b/src/xbt/graph.c @@ -159,7 +159,7 @@ void xbt_graph_free_graph(xbt_graph_t g, if (graph_free_function) (*graph_free_function) (g->data); free(g); - + xbt_graph_parse_lex_destroy(); return; } @@ -626,7 +626,9 @@ xbt_graph_t xbt_graph_read(const char *filename, ETag_graphxml_edge_fun = __parse_edge; xbt_graph_parse_open(filename); - xbt_assert1((!(*xbt_graph_parse) ()), "Parse error in %s", filename); + int res; + res = (*xbt_graph_parse) (); + xbt_assert1(!res, "Parse error in %s", filename); xbt_graph_parse_close(); graph = parsed_graph;