X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fparser.c;h=b6561ca57793f38c48ad6837680bd924aefa5b7e;hb=2864f4c5ccd6f4d5401b40a05b4f4d816617a557;hp=8017e3f10d1c6a22ed4b9877e4aac616b51b014d;hpb=ed9d56bd8f6906fadfb7b29eec15af18ab0a7aac;p=lttv.git diff --git a/ltt/branches/poly/ltt/parser.c b/ltt/branches/poly/ltt/parser.c index 8017e3f1..b6561ca5 100644 --- a/ltt/branches/poly/ltt/parser.c +++ b/ltt/branches/poly/ltt/parser.c @@ -497,10 +497,9 @@ type_descriptor *parseType(parse_file *in, type_descriptor *inType, free(str); str = appendString(str1,token); free(str1); - sequence_push(&(t->labels),allocAndCopy(str)); - free(str); + sequence_push(&(t->labels),str); }else - sequence_push(&(t->labels),allocAndCopy(str)); + sequence_push(&(t->labels),str); getForwardslash(in); getRAnglebracket(in); @@ -579,7 +578,8 @@ type_descriptor * find_named_type(char *name, table * named_types) t->type_name = allocAndCopy(name); t->type = NONE; t->fmt = NULL; - table_insert(named_types,allocAndCopy(name),t); + table_insert(named_types,t->type_name,t); + // table_insert(named_types,allocAndCopy(name),t); } return t; }