projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606972e
)
t-test-parser: Re-fix memory leak.
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 22 Jul 2019 00:16:07 +0000
(17:16 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 22 Jul 2019 00:17:26 +0000
(17:17 -0700)
I managed to screw this up in untabification.
Fixes: 759791b6dee8 ("t-test-parser: Untabify.")
src/language/stats/t-test-parser.c
patch
|
blob
|
history
diff --git
a/src/language/stats/t-test-parser.c
b/src/language/stats/t-test-parser.c
index 5d6b2ae21c0c437ca6fc912b07daa8aa10147a09..d3ea93aefcf70687a3e3e1a2fe65270187aa6491 100644
(file)
--- a/
src/language/stats/t-test-parser.c
+++ b/
src/language/stats/t-test-parser.c
@@
-96,8
+96,9
@@
cmd_t_test (struct lexer *lexer, struct dataset *ds)
if (NULL == (gvar = parse_variable (lexer, dict)))
goto exit;
- value_init (&gval0, var_get_width (gvar));
- value_init (&gval1, var_get_width (gvar));
+ gval_width = var_get_width (gvar);
+ value_init (&gval0, gval_width);
+ value_init (&gval1, gval_width);
int n;
if (lex_match (lexer, T_LPAREN))