aboutsummaryrefslogtreecommitdiffstats
path: root/sm/t-minip12.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-05-28 06:50:10 +0000
committerNIIBE Yutaka <[email protected]>2025-05-28 06:50:10 +0000
commit29bc14f56f6430294f225b6744012ab1f5df62e6 (patch)
tree295c3151a40e1303e499d68112f18efe9f2be195 /sm/t-minip12.c
parentagent: Allow building under Cygwin. (diff)
downloadgnupg-29bc14f56f6430294f225b6744012ab1f5df62e6.tar.gz
gnupg-29bc14f56f6430294f225b6744012ab1f5df62e6.zip
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 <[email protected]>
Diffstat (limited to 'sm/t-minip12.c')
-rw-r--r--sm/t-minip12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/t-minip12.c b/sm/t-minip12.c
index cc2fe2bb6..8c7ff4a9b 100644
--- a/sm/t-minip12.c
+++ b/sm/t-minip12.c
@@ -433,7 +433,8 @@ one_file (const char *name, const char *pass)
gcry_free (tmpbuf);
}
}
- }
+ p12_parse_free_kparms (result);
+ }
if (badpass)
log_error ("Bad password given?\n");