From 2e394b5547a02d0927de00711148fe3461abf75c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 21 Jul 2019 17:16:07 -0700 Subject: [PATCH] t-test-parser: Re-fix memory leak. I managed to screw this up in untabification. Fixes: 759791b6dee8 ("t-test-parser: Untabify.") --- src/language/stats/t-test-parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/language/stats/t-test-parser.c b/src/language/stats/t-test-parser.c index 5d6b2ae21c..d3ea93aefc 100644 --- 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)) -- 2.30.2