mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Fix memory leak in CRL cache
This commit is contained in:
parent
d906fb5b12
commit
c294a70322
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user