Fix memory leak in CRL cache

This commit is contained in:
jpierre%netscape.com 2002-09-18 00:34:32 +00:00
parent d906fb5b12
commit c294a70322

View File

@ -34,7 +34,7 @@
/*
* Moved from secpkcs7.c
*
* $Id: crl.c,v 1.24 2002/09/11 01:08:06 jpierre%netscape.com Exp $
* $Id: crl.c,v 1.25 2002/09/18 00:34:32 jpierre%netscape.com Exp $
*/
#include "cert.h"
@ -957,6 +957,11 @@ SECStatus DPCache_Destroy(CRLDPCache* cache)
{
SEC_DestroyCrl(cache->crls[i]);
}
/* free the array of CRLs */
if (cache->crls)
{
PR_Free(cache->crls);
}
/* destroy the hash table */
if (cache->entries)
{