Home GnuPG
Diffusion GnuPG 64c5c45e2aa4

g10: Fix memory leak in enum_secret_keys.

Description

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: T4140
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details