void box_plot_variables(const struct factor *fctr,
- struct variable **vars, int n_vars,
+ const struct variable **vars, int n_vars,
const struct variable *id
);
multipass_procedure_with_splits (run_examine, &cmd);
if ( totals )
- free(totals);
+ free( totals );
+
+ if ( dependent_vars )
+ free (dependent_vars);
subc_list_double_destroy(&percentile_list);
assert(n_dependent_vars);
totals = xmalloc( sizeof(struct metrics) * n_dependent_vars);
+ memset ( totals, 0, sizeof(struct metrics) * n_dependent_vars);
if ( lex_match(T_BY))
{
output_examine();
- for ( v = 0 ; v < n_dependent_vars ; ++v )
- hsh_destroy(totals[v].ordered_data);
+
+ if ( totals )
+ {
+ int i;
+ for ( i = 0 ; i < n_dependent_vars ; ++i )
+ metrics_destroy(&totals[i]);
+ }
}
void
box_plot_variables(const struct factor *fctr,
- struct variable **vars, int n_vars,
+ const struct variable **vars, int n_vars,
const struct variable *id)
{
box_plot_group(const struct factor *fctr,
const struct variable **vars,
int n_vars,
- const struct variable *id)
+ const struct variable *id UNUSED)
{
int i;