From 8f471c51c709556ebfe46eaeb716ad171feae972 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 24 Oct 2009 09:26:21 +0200 Subject: [PATCH] Call categoricals_done at start of second pass. --- src/math/covariance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/math/covariance.c b/src/math/covariance.c index f3ef7ad4..7e973629 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -348,6 +348,8 @@ covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c) cov->moments[i] = resize_matrix (cov->moments[i], cov->dim); } + categoricals_done (cov->categoricals); + /* Divide the means by the number of samples */ for (i = 0; i < cov->n_vars; ++i) { -- 2.30.2