From: Ben Pfaff Date: Mon, 22 Jul 2019 00:16:07 +0000 (-0700) Subject: t-test-parser: Re-fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e394b5547a02d0927de00711148fe3461abf75c;p=pspp t-test-parser: Re-fix memory leak. I managed to screw this up in untabification. Fixes: 759791b6dee8 ("t-test-parser: Untabify.") --- 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))