From: John Darrington Date: Thu, 20 Jun 2019 18:38:37 +0000 (+0200) Subject: MEANS: Fix memory leak X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d88181d071a1c2ad3e0cd11b0646cef6e0c021;p=pspp MEANS: Fix memory leak --- 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);