projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b142b4c
)
FREQUENCIES: Fix use-after-free error.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 2 Aug 2022 00:25:49 +0000
(17:25 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 2 Aug 2022 00:25:49 +0000
(17:25 -0700)
src/language/stats/frequencies.c
patch
|
blob
|
history
diff --git
a/src/language/stats/frequencies.c
b/src/language/stats/frequencies.c
index 307a869ba2d1e17d723c80443f19b8ba7a7a7240..a851c2196073a4ba1d3b530f70c686aca323e19f 100644
(file)
--- a/
src/language/stats/frequencies.c
+++ b/
src/language/stats/frequencies.c
@@
-1244,9
+1244,9
@@
cmd_frequencies (struct lexer *lexer, struct dataset *ds)
error:
free (vars);
- free (frq.vars);
for (size_t i = 0; i < frq.n_vars; i++)
free (frq.vars[i].percentiles);
+ free (frq.vars);
free (frq.bar);
free (frq.pie);
free (frq.hist);