Leak less memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18773 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 19:08:10 +00:00
parent 2c56bfb0e8
commit ff2823a4e6

View File

@@ -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;
}