]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - mem.c
cscvs to tla changeset 76
[onak.git] / mem.c
diff --git a/mem.c b/mem.c
index 0795bf3b66f93ab42d0632f6e0c22ffa1e25a43b..325b07a75acc76e05af7c8d4ac8b0dfa46cc2bf4 100644 (file)
--- a/mem.c
+++ b/mem.c
@@ -13,7 +13,6 @@
 #include "keystructs.h"
 #include "ll.h"
 #include "mem.h"
 #include "keystructs.h"
 #include "ll.h"
 #include "mem.h"
-#include "stats.h"
 
 /**
  *     packet_dup - duplicate an OpenPGP packet.
 
 /**
  *     packet_dup - duplicate an OpenPGP packet.
@@ -188,6 +187,10 @@ void free_statskey(struct stats_key *key)
                        llfree(key->sigs, NULL);
                        key->sigs = NULL;
                }
                        llfree(key->sigs, NULL);
                        key->sigs = NULL;
                }
+               if (key->signs != NULL) {
+                       llfree(key->signs, NULL);
+                       key->signs = NULL;
+               }
                free(key);
        }
 }
                free(key);
        }
 }