From ff2823a4e654b57bd54478c4e52d2942e77134ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 21 Oct 2006 19:08:10 +0000 Subject: [PATCH] Leak less memory. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18773 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index fb23d1f0f..eca3f114d 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -141,6 +141,13 @@ cms_verify_sd(struct cms_verify_sd_options *opt, int argc, char **argv) if (ret) hx509_err(context, 1, ret, "hx509_cms_verify_signed"); + { + char *str; + der_print_heim_oid(&type, &str); + printf("type: %s\n"); + free(str); + der_free_oid(&type); + } printf("signers:\n"); hx509_certs_iter(context, signers, hx509_ci_print_names, stdout); @@ -247,6 +254,8 @@ cms_create_sd(struct cms_create_sd_options *opt, int argc, char **argv) if (ret) errx(1, "hx509_write_file: %d", ret); + free(o.data); + return 0; }