X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..7b7cb978ab032edb192effcd9eac443d8800b565:/mem.c?ds=sidebyside diff --git a/mem.c b/mem.c index 0795bf3..9bee71d 100644 --- a/mem.c +++ b/mem.c @@ -4,6 +4,8 @@ * Jonathan McDowell * * Copyright 2002 Project Purple + * + * $Id: mem.c,v 1.5 2003/06/04 20:57:10 noodles Exp $ */ #include @@ -13,7 +15,6 @@ #include "keystructs.h" #include "ll.h" #include "mem.h" -#include "stats.h" /** * packet_dup - duplicate an OpenPGP packet. @@ -188,6 +189,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); } }