From: John Darrington Date: Wed, 11 Aug 2010 19:31:20 +0000 (+0200) Subject: correlations: Fix memory leak X-Git-Tag: sav-api~105 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F20100817040502%2Fpspp;p=pspp correlations: Fix memory leak --- diff --git a/src/language/stats/correlations.c b/src/language/stats/correlations.c index 995675e2cb..ea7d6909bb 100644 --- a/src/language/stats/correlations.c +++ b/src/language/stats/correlations.c @@ -498,10 +498,13 @@ cmd_correlation (struct lexer *lexer, struct dataset *ds) /* Done. */ + free (corr->vars); free (corr); + return ok ? CMD_SUCCESS : CMD_CASCADING_FAILURE; error: + free (corr->vars); free (corr); return CMD_FAILURE; }