summaryrefslogtreecommitdiffstats
path: root/src/datatype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datatype.c')
-rw-r--r--src/datatype.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datatype.c b/src/datatype.c
index db3fb06c..5599c597 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -950,6 +950,8 @@ const struct datatype *concat_type_alloc(const struct expr *expr)
void concat_type_destroy(const struct datatype *dtype)
{
- if (dtype->flags & DTYPE_F_ALLOC)
+ if (dtype->flags & DTYPE_F_ALLOC) {
+ xfree(dtype->desc);
xfree(dtype);
+ }
}