Skip to content
Snippets Groups Projects
Commit e70994fd authored by Kristof Szabados's avatar Kristof Szabados
Browse files

correct the memory leak that appears when a syntax error is found in a templatelist.


Signed-off-by: default avatarkristof <Kristof.Szabados@ericsson.com>
parent 90892d1a
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,6 @@ static const string anyname("anytype");
bool bool_val; /* boolean value */
char *str; /* simple string value */
unsigned char uchar_val;
int_val_t *int_val; /* integer value */
Real float_val; /* float value */
Identifier *id;
......@@ -1867,7 +1866,7 @@ optDecodedModifier
%left '*' '/' ModKeyword RemKeyword
%left UnarySign
%expect 63
%expect 66
%start GrammarRoot
......@@ -3879,6 +3878,11 @@ ValueOrAttribList: // 142 is a Templates*
$$ = $5;
$$->add_front_t($2);
}
| '(' TemplateListElem optError ')'
{
$$ = new Templates;
$$->add_front_t($2);
}
| '(' error TemplateListElem optError ',' seqValueOrAttrib optError ')'
{
$$ = $6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment