From: Ben Pfaff Date: Wed, 31 Mar 2004 06:04:11 +0000 (+0000) Subject: Fix DESCRIPTIVES memory leak. X-Git-Tag: v0.4.0~296 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f65749e40b8332ddf96ee64074ea7736f13a1a69;p=pspp-builds.git Fix DESCRIPTIVES memory leak. --- 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; }