Home GnuPG
Diffusion GnuPG 234e9db3c324

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

(cherry picked from commit bcc002cd45d1c6bd51c2b2093f92d396970c082e)

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

Details

Provenance
wernerAuthored on May 28 2024, 1:46 PM
Parents
rGf46d75f0b223: scd:openpgp: Add new vendor.
Branches
Unknown
Tags
Unknown
Tasks
T7129: Fix static reports by static analyser in gnugp