Patched memory leak.
authorBen Lynn <benlynn@gmail.com>
Mon, 15 Sep 2008 11:50:29 +0000 (15 04:50 -0700)
committerBen Lynn <benlynn@gmail.com>
Mon, 15 Sep 2008 11:50:29 +0000 (15 04:50 -0700)
cf.c

diff --git a/cf.c b/cf.c
index fd78736..51eca4f 100644 (file)
--- a/cf.c
+++ b/cf.c
@@ -69,6 +69,7 @@ void cf_free(cf_t cf) {
   channel_ptr c = cf->chan;
   while (c) {
     channel_ptr cnext = c->next;
+    mpz_clear(c->data);
     free(c->data);
     free(c);
     c = cnext;