free private key and tbs

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20404 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-18 20:21:50 +00:00
parent 3fe32c86f9
commit f6cdbe6393

View File

@@ -1601,6 +1601,12 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv)
hx509_cert_free(cert);
free_SubjectPublicKeyInfo(&spki);
if (private_key != cert_key)
_hx509_private_key_free(&private_key);
_hx509_private_key_free(&cert_key);
hx509_ca_tbs_free(&tbs);
return 0;
}