From 3b45b998691d080fcb64cb8783633cf7b14a54ff Mon Sep 17 00:00:00 2001
From: John Darrington <john@darrington.wattle.id.au>
Date: Sat, 26 Nov 2011 12:51:53 +0100
Subject: [PATCH] Fix memory leak

---
 src/math/categoricals.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/math/categoricals.c b/src/math/categoricals.c
index 88d0d5c2..a2cf9dd7 100644
--- a/src/math/categoricals.c
+++ b/src/math/categoricals.c
@@ -264,6 +264,9 @@ categoricals_destroy (struct categoricals *cat)
 	{
 	  case_unref (iv->ccase);
 	}
+
+      free (cat->iap[i].enc_sum);
+      free (cat->iap[i].df_prod);
       hmap_destroy (&cat->iap[i].ivmap);
     }
 
-- 
2.30.2