projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix leaks in MEANS command
[pspp]
/
src
/
language
/
stats
/
examine.c
diff --git
a/src/language/stats/examine.c
b/src/language/stats/examine.c
index 9bc287e510fcd36677a62defb77b0dde2ba167d7..46b27f9d360ac34b1161a69de910aadb18eaba43 100644
(file)
--- a/
src/language/stats/examine.c
+++ b/
src/language/stats/examine.c
@@
-1605,8
+1605,6
@@
calculate_n (const void *aux1, void *aux2 UNUSED, void *user_data)
/ (1 + log2 (es[v].cc))
;
/ (1 + log2 (es[v].cc))
;
- bin_width = chart_rounded_tick (bin_width);
-
es[v].histogram =
histogram_create (bin_width, es[v].minimum, es[v].maximum);
}
es[v].histogram =
histogram_create (bin_width, es[v].minimum, es[v].maximum);
}
@@
-1805,7
+1803,8
@@
run_examine (struct examine *cmd, struct casereader *input)
struct payload payload;
payload.create = create_n;
payload.update = update_n;
struct payload payload;
payload.create = create_n;
payload.update = update_n;
- payload.destroy = calculate_n;
+ payload.calculate = calculate_n;
+ payload.destroy = NULL;
cmd->wv = dict_get_weight (cmd->dict);
cmd->wv = dict_get_weight (cmd->dict);
@@
-2238,6
+2237,7
@@
cmd_examine (struct lexer *lexer, struct dataset *ds)
{
examine.n_iacts--;
examine.iacts = &iacts_mem[1];
{
examine.n_iacts--;
examine.iacts = &iacts_mem[1];
+ interaction_destroy (iacts_mem[0]);
}
}
@@
-2293,9
+2293,6
@@
cmd_examine (struct lexer *lexer, struct dataset *ds)
caseproto_unref (examine.ex_proto);
caseproto_unref (examine.ex_proto);
- for (i = 0; i < examine.n_iacts; ++i)
- interaction_destroy (examine.iacts[i]);
-
free (examine.ptiles);
free (examine.dep_vars);
pool_destroy (examine.pool);
free (examine.ptiles);
free (examine.dep_vars);
pool_destroy (examine.pool);