From: John Darrington Date: Sun, 31 Jul 2016 15:16:45 +0000 (+0200) Subject: Fix memory leak when T-TEST failed to parse X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ee52e552865fe0bdf97a866222ec2fc04e7d063;p=pspp Fix memory leak when T-TEST failed to parse --- diff --git a/src/language/stats/t-test-parser.c b/src/language/stats/t-test-parser.c index 38e58ce01a..9a0043aa45 100644 --- a/src/language/stats/t-test-parser.c +++ b/src/language/stats/t-test-parser.c @@ -367,12 +367,17 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds) free (pairs); free (v1); free (v2); - free (tt.vars); return ok ? CMD_SUCCESS : CMD_FAILURE; parse_failed: + + free (pairs); + free (v1); + free (v2); + free (tt.vars); + return CMD_FAILURE; }