Home GnuPG
Diffusion GnuPG 1f5caf90bfaa

tools: Fix memory leaks and improve error handling.
1f5caf90bfaaUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tools: Fix memory leaks and improve error handling.

* tools/gpgconf-comp.c (gc_option_free): New function.
(gc_components_free): Likewise.
(gc_components_init): Likewise.
(retrieve_options_from_program): Use 'xfree', fix memory leak.
(change_options_program): Improve error handling.
(gc_component_change_options): Fix memory leaks.
* tools/gpgconf.c (main): Initialize components.
* tools/gpgconf.h (gc_components_init): New prototype.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jan 10 2017, 3:42 PM
Parents
rGc8cfc62125ac: tests: Add test for gpgconf.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG1f5caf90bfaa: tools: Fix memory leaks and improve error handling. (authored by Justus Winter <justus@g10code.com>).Jan 10 2017, 3:42 PM