g10: Fix memory leak in enum_secret_keys.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Sep 2018 22:55:20 +0000 (07:55 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 13 Sep 2018 22:55:20 +0000 (07:55 +0900)
commit64c5c45e2aa4a12d939680b9d51c8b26d61c5e9d
tree71eed178297b680781ca73f51851143e1e759976
parent69bab1cba07a8259b85a7911c2824724667803a4
g10: Fix memory leak in enum_secret_keys.

* g10/skclist.c (enum_secret_keys): Don't forget to call
free_public_key in the error return paths.

--

Reported-by: Philippe Antoine
GnuPG-bug-id: 4140
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/skclist.c