X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=mem.h;h=875bb4c3049e8f4ee5dcd9a26d4b50462b90d5da;hb=68784e7ff81a477fd4a973ba302d96285def9b7d;hp=3358cd18c7ea77c5e366722452b7396d63c5ce19;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/mem.h b/mem.h index 3358cd1..875bb4c 100644 --- a/mem.h +++ b/mem.h @@ -73,4 +73,14 @@ void free_signedpacket_list( */ void free_publickey(struct openpgp_publickey *key); +/** + * 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); + #endif /* __MEM_H_ */