From: John Darrington Date: Sun, 15 Jul 2012 09:19:44 +0000 (+0200) Subject: Fix some of the memory leaks in MEANS X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c9e2993ec6dba97db0068863d7d3bda7970094a;p=pspp Fix some of the memory leaks in MEANS --- diff --git a/src/language/stats/means.c b/src/language/stats/means.c index b14fe78492..f5e03c16f1 100644 --- a/src/language/stats/means.c +++ b/src/language/stats/means.c @@ -504,7 +504,7 @@ parse_means_table_syntax (struct lexer *lexer, const struct means *cmd, struct m table->layers = NULL; /* Dependent variable (s) */ - if (!parse_variables_const (lexer, cmd->dict, + if (!parse_variables_const_pool (lexer, cmd->pool, cmd->dict, &table->dep_vars, &table->n_dep_vars, PV_NO_DUPLICATE | PV_NUMERIC)) return false; @@ -519,8 +519,8 @@ parse_means_table_syntax (struct lexer *lexer, const struct means *cmd, struct m pool_realloc (cmd->pool, table->layers, sizeof (*table->layers) * table->n_layers); - if (!parse_variables_const - (lexer, cmd->dict, + if (!parse_variables_const_pool + (lexer, cmd->pool, cmd->dict, &table->layers[table->n_layers - 1].factor_vars, &table->layers[table->n_layers - 1].n_factor_vars, PV_NO_DUPLICATE))