X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=mem.c;h=6ac80e61a28897ffb1d39160ada4658a5358bf04;hp=8632bc2850db586f8dfa9acc5c96708808e9f7df;hb=3da81770b841f841c5145f91a9ccedc296e13f4b;hpb=6df51fef2960f533a741fb7290867387ed3fbba5 diff --git a/mem.c b/mem.c index 8632bc2..6ac80e6 100644 --- a/mem.c +++ b/mem.c @@ -172,26 +172,3 @@ void free_publickey(struct openpgp_publickey *key) { key = nextkey; } } - -/** - * free_statskey - free an stats key structure. - * @key: The key to free. - * - * Takes a stats key and frees the memory used by it and the linked list - * of sigs under it. Doesn't recurse into the list as it's assumed all the - * objects referenced also exist in the hash. - */ -void free_statskey(struct stats_key *key) -{ - if (key != NULL) { - if (key->sigs != NULL) { - llfree(key->sigs, NULL); - key->sigs = NULL; - } - if (key->signs != NULL) { - llfree(key->signs, NULL); - key->signs = NULL; - } - free(key); - } -}