mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgtar: Fix releasing PROC correctly.
* tools/gpgtar-extract.c (gpgtar_extract): Initialize PROC as NULL,
and release at the end for the case of jumping to "leave:" label.
* tools/gpgtar-list.c (gpgtar_list): Release at the end.
--
Fixes-commit: 29bc14f56f
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
87938a72f2
commit
95d0adfc56
2 changed files with 3 additions and 3 deletions
|
@ -593,11 +593,11 @@ gpgtar_list (const char *filename, int decrypt)
|
|||
}
|
||||
|
||||
leave:
|
||||
/* fixme: Why can't we use gpgrt_process_release (proc); */
|
||||
free_strlist (extheader);
|
||||
xfree (header);
|
||||
if (stream != es_stdin)
|
||||
es_fclose (stream);
|
||||
gpgrt_process_release (proc);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue