Home GnuPG
Diffusion GnuPG fa0771f609b5

g10: Avoid memory leaks

Description

g10: Avoid memory leaks

* g10/call-agent.c (card_keyinfo_cb): free keyinfo.  Restructure to
avoid backward gotos.
* g10/keyedit.c (menu_set_keyserver_url): properly enclose the block
* g10/keygen.c (gen_card_key): free pk and pkt

Additional changes:

  • Restructure to avoid backward gotos.
  • Signed-off-by: Werner Koch <wk@gnupg.org>
  • GnuPG-bug-id: T5393

Details

Provenance
JakujeAuthored on Apr 12 2021, 8:05 PM
wernerCommitted on May 20 2021, 2:42 PM
Parents
rG25aa353bf833: dirmgr: Avoid double free
Branches
Unknown
Tags
Unknown
Tasks
T5393: gnupg coverity static analysis reports