X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/42bcfe2cae29f375af4cf2cd3ccfa196b77a3946..b1cb08b256587f6c5d2c484438d942e58583ba88:/keydb_db2.c 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);