]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - mem.c
cscvs to tla changeset 120
[onak.git] / mem.c
diff --git a/mem.c b/mem.c
index bb68ac345c77d3b4189a0453da8028e4c3745751..4a713e4ea5dec6b67fdfb8ff78a0ea22551432e9 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -4,11 +4,14 @@
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2002 Project Purple
+ *
+ * $Id: mem.c,v 1.6 2003/06/07 13:45:35 noodles Exp $
  */
 
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "keystructs.h"
 #include "ll.h"
@@ -187,6 +190,10 @@ void free_statskey(struct stats_key *key)
                        llfree(key->sigs, NULL);
                        key->sigs = NULL;
                }
+               if (key->signs != NULL) {
+                       llfree(key->signs, NULL);
+                       key->signs = NULL;
+               }
                free(key);
        }
 }