g10: Fix another memory leak.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Sep 2018 23:11:45 +0000 (08:11 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Sep 2018 23:11:45 +0000 (08:11 +0900)
commit60c880bda5c9b821fd2968cf89c38c37be3c1a7b
tree5e36f8919200878c4b0a328752faf71f8652e9a3
parent2eb481e8cc1c37378cf68a06557c4a7a625d315c
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>
g10/skclist.c