X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..394938c479925750ffe56c28d281945ba4003a14:/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); } }