aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datconv.c2
-rw-r--r--src/gram.y7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/datconv.c b/src/datconv.c
index 7e9e532..ead1e57 100644
--- a/src/datconv.c
+++ b/src/datconv.c
@@ -206,6 +206,8 @@ dsegm_list_free (struct dsegm *dp)
while (dp)
{
struct dsegm *next = dp->next;
+ if (dp->type == FDEF_FLD)
+ free (dp->v.field.name);
free (dp);
dp = next;
}
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;
+ free ($1);
+ }
else if (strcmp ($1, "content") == 0)
+ {
$$ = 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.