diff options
author | Patrick McHardy <kaber@trash.net> | 2014-09-13 10:07:49 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-12-11 22:09:12 +0000 |
commit | 736f31f9032e3d7d7410f7e75ca1f5937848b2d1 (patch) | |
tree | 951ca121fe4d41b925b53a0e434c42b88e83a187 /src/datatype.c | |
parent | ede3a889260f240cae0786790cc0503fcad894d6 (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/datatype.c')
-rw-r--r-- | src/datatype.c | 4 |
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); + } } |