aboutsummaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gram.y b/src/gram.y
index 7ad314e..60769e9 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -219,13 +219,20 @@ optcomma : /* empty */
defid : T_IDENT
{
if (strcmp ($1, "key") == 0)
- $$ = DS_KEY;
+ {
+ $$ = DS_KEY;
+ free ($1);
+ }
else if (strcmp ($1, "content") == 0)
- $$ = DS_CONTENT;
+ {
+ $$ = DS_CONTENT;
+ free ($1);
+ }
else
{
terror (_("expected \"key\" or \"content\", "
"but found \"%s\""), $1);
+ free ($1);
YYERROR;
}
}

Return to:

Send suggestions and report system problems to the System administrator.