From 99fc1632bdc44607eedfa1208edbda458730c471 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 24 Oct 2009 08:32:48 +0200 Subject: [PATCH] Destroy the categorical variables when the covariance matrix is destroyed --- src/math/covariance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/math/covariance.c b/src/math/covariance.c index e9f29a29..67ca0e50 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -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]); -- 2.30.2