Destroy the categorical variables when the covariance matrix is destroyed
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2009 06:32:48 +0000 (08:32 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2009 08:00:01 +0000 (10:00 +0200)
src/math/covariance.c

index e9f29a299f9b94b31ec196d8eb3a7424bc672e2e..67ca0e5054399c0045d3de31b0db5ecce235d283 100644 (file)
@@ -557,6 +557,7 @@ covariance_destroy (struct covariance *cov)
 {
   size_t i;
   free (cov->vars);
+  categoricals_destroy (cov->categoricals);
 
   for (i = 0; i < n_MOMENTS; ++i)
     gsl_matrix_free (cov->moments[i]);