X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..2eed640f944a24204fa4ed0dbbc80004a800b1eb:/mem.c diff --git a/mem.c b/mem.c index 0795bf3..83ffa55 100644 --- a/mem.c +++ b/mem.c @@ -9,11 +9,11 @@ #include #include #include +#include #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); } }