Cleaning up freeing of regression coefficients
authorJason Stover <jhs@math.gcsu.edu>
Sat, 21 Jan 2006 15:57:14 +0000 (15:57 +0000)
committerJason Stover <jhs@math.gcsu.edu>
Sat, 21 Jan 2006 15:57:14 +0000 (15:57 +0000)
lib/linreg/coefficient.c
lib/linreg/linreg.c

index 1645d2c2d365ce59e156ca7986784a7bf307355f..5b9266e2de696408d661135fdc8e832f8645e7d3 100644 (file)
@@ -43,7 +43,6 @@ struct varinfo
 
 void pspp_linreg_coeff_free (struct pspp_linreg_coeff *c)
 {
-  free (c->v_info);
   free (c);
 }
 
index 1fe4a79e5784aff1868c09e6c3d1aa56463508df..17833e57db0dd0bd877a395de00bfd5d8d6a3c0d 100644 (file)
@@ -118,12 +118,7 @@ pspp_linreg_cache_free (pspp_linreg_cache * c)
   gsl_vector_free (c->indep_std);
   gsl_vector_free (c->ss_indeps);
   gsl_matrix_free (c->cov);
-#if 0  
-  for (i = 1; i < c->n_coeffs; i++)
-    {
-      pspp_linreg_coeff_free (c->coeff + i);
-    }
-#endif
+  pspp_linreg_coeff_free (c->coeff);
   free (c);
 }