From a172cbe397a2f558fe455579948733c9e0491d01 Mon Sep 17 00:00:00 2001 From: "julien.pierre.bugs%sun.com" Date: Sat, 13 May 2006 00:27:12 +0000 Subject: [PATCH] Fix for bug 336477. Memory leak in CERT_UncacheCRL . r=nelson --- security/nss/lib/certdb/crl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c index 0f10a7aac4d8..9d9c54091a5d 100644 --- a/security/nss/lib/certdb/crl.c +++ b/security/nss/lib/certdb/crl.c @@ -37,7 +37,7 @@ /* * Moved from secpkcs7.c * - * $Id: crl.c,v 1.49 2005/04/17 03:17:07 julien.pierre.bugs%sun.com Exp $ + * $Id: crl.c,v 1.50 2006/05/13 00:27:12 julien.pierre.bugs%sun.com Exp $ */ #include "cert.h" @@ -2784,6 +2784,8 @@ SECStatus CERT_UncacheCRL(CERTCertDBHandle* dbhandle, SECItem* olddercrl) } DPCache_UnlockWrite(); + + rv = CachedCrl_Destroy(returned); } ReleaseDPCache(cache, writeLocked);