Home GnuPG
Diffusion GPGME fbce7deb3b68

core: Use "goto leave" pattern to clean up resources

Description

core: Use "goto leave" pattern to clean up resources

* src/engine-gpg.c (build_argv): Initialize fd_data_map and argv. Goto
leave on error. Free fd_data_map and argv on error.

This will make it easier to add an additional "--with-gpg-args" option
where needed.

Details

Provenance
ikloeckerAuthored on Jan 17 2023, 9:29 AM
Parents
rM984ff7e3a2a9: core: Do not add obsolete --no-sk-comments to command line
Branches
Unknown
Tags
Unknown
Tasks
T6342: GPGME/Kleopatra: Extend gpgme to use gpgtar