From 67d88181d071a1c2ad3e0cd11b0646cef6e0c021 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 20 Jun 2019 20:38:37 +0200 Subject: [PATCH] MEANS: Fix memory leak --- src/language/stats/means.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/language/stats/means.c b/src/language/stats/means.c index f0174c4ea3..37fa8873ae 100644 --- a/src/language/stats/means.c +++ b/src/language/stats/means.c @@ -118,6 +118,8 @@ destroy_workspace (const struct mtable *mt, struct workspace *ws) HMAP_FOR_EACH_SAFE (inst, next, struct instance, hmap_node, &instances->map) { + int width = var_get_width (inst->var); + value_destroy (&inst->value, width); free (inst); } hmap_destroy (&instances->map); -- 2.30.2