Home GnuPG
Diffusion GnuPG bcc002cd45d1

gpg: Avoid a double free on error in the key generation.

Description

gpg: Avoid a double free on error in the key generation.

* g10/keygen.c (card_store_key_with_backup): Avoid double free and
simplify error handling.

This is part of

  • GnuPG-bug-id: T7129
  • Co-authored-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
wernerAuthored on May 28 2024, 1:46 PM
Parents
rGd631c8198c25: tpm: Improve error handling and check returned lengths.
Branches
Unknown
Tags
Unknown
Tasks
T7129: Fix static reports by static analyser in gnugp