Home GnuPG
Diffusion GnuPG 60c880bda5c9

g10: Fix another memory leak.

Description

g10: Fix another memory leak.

* g10/skclist.c (enum_secret_keys): Use SK_LIST instead of pubkey_t.

The use of pubkey_t was wrong. The use is just a list of keys, not
with keyblock. With SK_LIST, release_sk_list releases memory by
free_public_key.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 14 2018, 1:11 AM
Parents
rG2eb481e8cc1c: g10: Fix memory leak (more).
Branches
Unknown
Tags
Unknown