Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leak in this example.
[simgrid.git] / testsuite / xbt / graphxml_usage.c
index 437fd33..7839cd7 100644 (file)
@@ -154,6 +154,7 @@ void test(char *graph_file)
   }
 
   xbt_graph_free_graph(graph, free_label, NULL, NULL);
+  xbt_graph_parse_lex_destroy();
 }
 
 #ifdef __BORLANDC__
@@ -169,6 +170,5 @@ int main(int argc, char **argv)
     return 1;
   }
   test(argv[1]);
-
   return 0;
 }