mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgsm,tests,tools: Fix memory leaks.
* sm/minip12.c (p12_parse): Fix creating new TLV with old TLV. * sm/t-minip12.c (one_file): Release RESULT. * tests/gpgscm/ffi.c (do_process_wait): Call gpgrt_process_release. * tools/gpgconf-comp.c (retrieve_options_from_program): Release PARGS. * tools/gpgtar-extract.c (gpgtar_extract): Release PROC on leave. * tools/gpgtar-list.c (gpgtar_list): Release PROC on leave. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
1587b387c0
commit
29bc14f56f
6 changed files with 23 additions and 8 deletions
|
@ -2027,7 +2027,7 @@ p12_parse (const unsigned char *buffer, size_t length, const char *pw,
|
|||
if ((err = tlv_expect_octet_string (tlv, &data, &datalen)))
|
||||
goto bailout;
|
||||
|
||||
tmptlv = tlv_parser_new (data, datalen, opt_verbose, NULL);
|
||||
tmptlv = tlv_parser_new (data, datalen, opt_verbose, tlv);
|
||||
if (!tmptlv)
|
||||
{
|
||||
err = gpg_error_from_syserror ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue