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/gpgtar-extract.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 'tools/gpgtar-extract.c')
| -rw-r--r-- | tools/gpgtar-extract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgtar-extract.c b/tools/gpgtar-extract.c index 8793ecd33..c6e3b6065 100644 --- a/tools/gpgtar-extract.c +++ b/tools/gpgtar-extract.c @@ -467,7 +467,7 @@ gpgtar_extract (const char *filename, int decrypt) { err = gpg_error_from_syserror (); log_error ("error opening '%s': %s\n", filename, gpg_strerror (err)); - return err; + goto leave; } if (stream == es_stdin) es_set_binary (es_stdin); |
