aboutsummaryrefslogtreecommitdiff
path: root/src/meta.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/meta.c')
-rw-r--r--src/meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meta.c b/src/meta.c
index 61dc334..059fe6e 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -124,25 +124,25 @@ meta_expand_string (const char *string, struct metadef *def, void *data,
txtacc_grow (acc, newval, len);
free (newval);
}
else
txtacc_grow (acc, s, len);
p++;
}
}
else
txtacc_grow (acc, p, 1);
}
txtacc_1grow (acc, 0);
- res = xstrdup (txtacc_finish (acc));
+ res = txtacc_finish (acc, 1);
txtacc_free (acc);
return res;
}
void
meta_free (struct metadef *def)
{
for (; def->kw; def++)
{
if (def->storage)
{
free (def->storage);

Return to:

Send suggestions and report system problems to the System administrator.