From f65749e40b8332ddf96ee64074ea7736f13a1a69 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 31 Mar 2004 06:04:11 +0000 Subject: [PATCH] Fix DESCRIPTIVES memory leak. --- src/ChangeLog | 4 ++++ src/descript.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 6e121c9f..36aba042 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 30 22:01:57 2004 Ben Pfaff + + * descript.c: (cmd_descriptives) Free `vars' to avoid memory leak. + Mon Mar 29 16:26:40 2004 Ben Pfaff * debug.c: Removed. Moved cmd_debug_evaluate() into expr-evl.c. diff --git a/src/descript.c b/src/descript.c index 55b1d37c..e7577ae7 100644 --- a/src/descript.c +++ b/src/descript.c @@ -396,10 +396,12 @@ cmd_descriptives (void) setup_z_trns (dsc); /* Done. */ + free (vars); free_dsc_proc (dsc); return CMD_SUCCESS; error: + free (vars); free_dsc_proc (dsc); return CMD_FAILURE; } -- 2.30.2