Home GnuPG

tty: Fix error return paths and its resource leaks.

Description

tty: Fix error return paths and its resource leaks.

* tty/pinentry-tty.c (tty_cmd_handler): Only call do_touch_file
on successful interaction.  Fix closing file.
  • GnuPG-bug-id: T5384
  • Co-authored-by: Jakub Jelen <jjelen@redhat.com>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 16 2021, 5:54 AM
Parents
rP6b697bd3e9f8: build: Update m4/gpg-error.m4
Branches
Unknown
Tags
Unknown
Tasks
T5384: pinentry coverity static analysis reports