X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/42bcfe2cae29f375af4cf2cd3ccfa196b77a3946..8bb45b1dfe6b5b30d89f154c16fb3eb8c049f496:/keydb_db2.c?ds=inline diff --git a/keydb_db2.c b/keydb_db2.c index 1303cd8..7490ff3 100644 --- a/keydb_db2.c +++ b/keydb_db2.c @@ -183,6 +183,8 @@ int fetch_key(uint64_t keyid, struct openpgp_publickey **publickey, fetchbuf.size = data.size; read_openpgp_stream(buffer_fetchchar, &fetchbuf, &packets); parse_keys(packets, publickey); + free_packet_list(packets); + packets = NULL; } return (!ret);