Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ignore generated
[simgrid.git] / src / gras / DataDesc / ddt_parse.c
index e4a8bf9..c60dcc0 100644 (file)
@@ -1,12 +1,13 @@
 /* $Id$ */
 
-/* DataDesc/ddt_parse.c -- automatic parsing of data structures */
+/* DataDesc/ddt_parse.c -- automatic parsing of data structures             */
 
-/* Authors: Arnaud Legrand, Martin Quinson            */
-/* Copyright (C) 2003, 2004 Martin Quinson.                                 */
+/* Copyright (c) 2003 Arnaud Legrand.                                       */
+/* Copyright (c) 2003, 2004 Martin Quinson.                                 */
+/* All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <ctype.h> /* isdigit */
 
@@ -159,7 +160,6 @@ static void change_to_ref_pop_array(xbt_dynar_t dynar) {
 static xbt_error_t parse_statement(char         *definition,
                                    xbt_dynar_t  identifiers,
                                    xbt_dynar_t  fields_to_push) {
-  xbt_error_t errcode;
   char buffname[512];
 
   s_identifier_t identifier;
@@ -606,6 +606,7 @@ gras_datadesc_parse(const char            *name,
           name,res->name);
     xbt_abort();
   }    
+  gras_ddt_parse_lex_destroy();
   XBT_OUT;
   return res;
 }