Destroy the categorical variables when the covariance matrix is destroyed
[pspp-builds.git] / 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]);