Fix memory leak
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 26 Nov 2011 11:51:53 +0000 (12:51 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 26 Nov 2011 11:51:53 +0000 (12:51 +0100)
src/math/categoricals.c

index 88d0d5c238e87c8746f90fb9d2ef7acc9409d9c0..a2cf9dd7854c130afee0e6de6cda28b506e9d486 100644 (file)
@@ -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);
     }