X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..6a721665f41611f80cb878237b5d7fa650ccbe20:/mem.c diff --git a/mem.c b/mem.c index 0795bf3..325b07a 100644 --- a/mem.c +++ b/mem.c @@ -13,7 +13,6 @@ #include "keystructs.h" #include "ll.h" #include "mem.h" -#include "stats.h" /** * packet_dup - duplicate an OpenPGP packet. @@ -188,6 +187,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); } }