From: Jason Stover Date: Thu, 19 Jan 2006 03:31:04 +0000 (+0000) Subject: Removed extra free X-Git-Tag: v0.6.0~1090 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf71a28cc57afd259bb086ac5dfde5b685ba7995;p=pspp-builds.git Removed extra free --- diff --git a/lib/linreg/linreg.c b/lib/linreg/linreg.c index 0bc1f0ce..1fe4a79e 100644 --- a/lib/linreg/linreg.c +++ b/lib/linreg/linreg.c @@ -112,11 +112,18 @@ pspp_linreg_cache_alloc (size_t n, size_t p) void pspp_linreg_cache_free (pspp_linreg_cache * c) { + int i; + gsl_vector_free (c->indep_means); gsl_vector_free (c->indep_std); gsl_vector_free (c->ss_indeps); gsl_matrix_free (c->cov); - pspp_linreg_coeff_free (c->coeff); +#if 0 + for (i = 1; i < c->n_coeffs; i++) + { + pspp_linreg_coeff_free (c->coeff + i); + } +#endif free (c); }