]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - mem.c
Remove CVS Id tags.
[onak.git] / mem.c
diff --git a/mem.c b/mem.c
index 0795bf3b66f93ab42d0632f6e0c22ffa1e25a43b..83ffa55375e5713477d4d68dacadf59a6d5e73e0 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -9,11 +9,11 @@
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "keystructs.h"
 #include "ll.h"
 #include "mem.h"
-#include "stats.h"
 
 /**
  *     packet_dup - duplicate an OpenPGP packet.
@@ -188,6 +188,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);
        }
 }