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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user