X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b166842cf79389293a5ad953b195caa6a03331f..6d7d985bb411c1d38969ffce5f8789d7127887c3:/src/gras/DataDesc/ddt_parse.c diff --git a/src/gras/DataDesc/ddt_parse.c b/src/gras/DataDesc/ddt_parse.c index 2bdd1229fe..187b418eaa 100644 --- a/src/gras/DataDesc/ddt_parse.c +++ b/src/gras/DataDesc/ddt_parse.c @@ -468,6 +468,7 @@ static void parse_statement(char *definition, } else { PARSE_ERROR1("subtype annotation only accepted for dynars and matrices, but passed to '%s'",identifier.type_name); } + free(keyval); } else if (!strcmp(keyname,"free_f")) { int *storage=xbt_dict_get_or_null(gras_dd_constants,keyval); if (!storage) @@ -482,7 +483,9 @@ static void parse_statement(char *definition, PARSE_ERROR1("free_f annotation only accepted for dynars and matrices which subtype is already declared (field %s)", identifier.name); } + free(keyval); } else { + free(keyval); PARSE_ERROR1("Unknown annotation type: '%s'",keyname); }