(hx509_revoke_free): free all memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16622 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -69,6 +69,7 @@ hx509_revoke_free(hx509_revoke_ctx *revoke)
|
||||
free((*revoke)->crls.val[i].path);
|
||||
free_CRLCertificateList(&(*revoke)->crls.val[i].crl);
|
||||
}
|
||||
free((*revoke)->crls.val);
|
||||
|
||||
memset(*revoke, 0, sizeof(**revoke));
|
||||
free(*revoke);
|
||||
@@ -128,7 +129,8 @@ hx509_revoke_add_crl(hx509_context context,
|
||||
{
|
||||
size_t length, size;
|
||||
void *data;
|
||||
int ret, i;
|
||||
size_t i;
|
||||
int ret;
|
||||
|
||||
if (strncmp(path, "FILE:", 5) != 0)
|
||||
return EINVAL;
|
||||
|
Reference in New Issue
Block a user