Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leak in this example.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 14 Mar 2011 13:54:31 +0000 (13:54 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 14 Mar 2011 13:54:31 +0000 (13:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9787 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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;
 }