diff options
author | Jakub Jelen <[email protected]> | 2024-07-15 17:55:44 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-07-22 04:30:33 +0000 |
commit | e8c8068decb3351046d30ea45913f831414eb8c0 (patch) | |
tree | e5a1ceb8cbf251adaff5573098254b9a20d6586f /tools/gpg-auth.c | |
parent | speedo,w32: Fix InstallDir usage and x64 install (diff) | |
download | gnupg-e8c8068decb3351046d30ea45913f831414eb8c0.tar.gz gnupg-e8c8068decb3351046d30ea45913f831414eb8c0.zip |
tools: Avoid memory leaks.
* tools/gpg-auth.c (ssh_authorized_keys): Free list on error.
* tools/gpgtar-extract.c (gpgtar_extract): Free memory on error.
--
GnuPG-bug-id: 7201
Signed-off-by: Jakub Jelen <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | tools/gpg-auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpg-auth.c b/tools/gpg-auth.c index 874861b25..f768215d4 100644 --- a/tools/gpg-auth.c +++ b/tools/gpg-auth.c @@ -825,6 +825,7 @@ ssh_authorized_keys (const char *user, struct ssh_key_list **r_ssh_key_list) { err = gpg_error (GPG_ERR_LINE_TOO_LONG); log_error (_("error reading '%s': %s\n"), fname, gpg_strerror (err)); + release_ssh_key_list (ssh_key_list); goto leave; } |