summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-09-13 10:07:49 +0100
committerPatrick McHardy <kaber@trash.net>2014-12-11 22:09:12 +0000
commit736f31f9032e3d7d7410f7e75ca1f5937848b2d1 (patch)
tree951ca121fe4d41b925b53a0e434c42b88e83a187 /src
parentede3a889260f240cae0786790cc0503fcad894d6 (diff)
dtype: fix memory leak in concat_type_destroy()
Free allocated memory for ->desc. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-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);
+ }
}