Try to not leak memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18792 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 21:00:05 +00:00
parent 360e32e201
commit e9d03bde61
2 changed files with 2 additions and 0 deletions

View File

@@ -649,6 +649,7 @@ pcert_verify(struct verify_options *opt, int argc, char **argv)
hx509_certs_free(&chain);
hx509_certs_free(&anchors);
hx509_revoke_free(&revoke_ctx);
return ret;
}

View File

@@ -100,6 +100,7 @@ hx509_revoke_free(hx509_revoke_ctx *ctx)
for (i = 0; i < (*ctx)->ocsps.len; i++)
free_ocsp(&(*ctx)->ocsps.val[i]);
free((*ctx)->ocsps.val);
free((*ctx)->crls.val);