diff options
author | julien.pierre.boogz%sun.com <devnull@localhost> | 2009-04-21 22:53:58 +0000 |
---|---|---|
committer | julien.pierre.boogz%sun.com <devnull@localhost> | 2009-04-21 22:53:58 +0000 |
commit | 9d4ce670b31f03ba4390698feb4ff2f99cac16b8 (patch) | |
tree | 4cf817e026cff58a819abc9d2ffdd8bcff96a6eb | |
parent | d68004dd2274e287514a96933caf20ab5aba5232 (diff) | |
download | nss-hg-9d4ce670b31f03ba4390698feb4ff2f99cac16b8.tar.gz |
Fix for bug 321755. Plug leak. r=nelson
-rw-r--r-- | security/nss/lib/certdb/crl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/nss/lib/certdb/crl.c b/security/nss/lib/certdb/crl.c index 8f4d401d5..04927aa31 100644 --- a/security/nss/lib/certdb/crl.c +++ b/security/nss/lib/certdb/crl.c @@ -3097,8 +3097,7 @@ static SECStatus addCRLToCache(CERTCertDBHandle* dbhandle, SECItem* crl, if (SECSuccess != NamedCRLCacheEntry_Create(newEntry) || !*newEntry) { /* no need to keep unused CRL around */ - if (entry && entry->crl) - SECITEM_ZfreeItem(entry->crl, PR_TRUE); + SECITEM_ZfreeItem(crl, PR_TRUE); return SECFailure; } entry = *newEntry; |