From 44cea648f18695168592a0cc576b3255e5caf997 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 1 Nov 2010 16:00:49 -0400 Subject: [PATCH 094/150] - minor memory leak --- src/plugins/preauth/pkinit/pkinit_crypto_nss.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c index 236c23a..1e9abd9 100644 --- a/src/plugins/preauth/pkinit/pkinit_crypto_nss.c +++ b/src/plugins/preauth/pkinit/pkinit_crypto_nss.c @@ -2329,7 +2329,7 @@ crypto_load_dir(krb5_context context, status = SECSuccess; } PORT_Free(certcrl); - if (!load_crl) { + if (key != NULL) { PORT_Free(key); } } @@ -2382,7 +2382,7 @@ crypto_load_certdb(krb5_context context, /* Allocate a bigger list. */ id_userdbs = PORT_ArenaZAlloc(id_cryptoctx->pool, - sizeof(id_userdbs[0]) * (i + 2)); + sizeof(id_userdbs[0]) * (i + 2)); for (j = 0; j < i; j++) { id_userdbs[j] = id_cryptoctx->id_userdbs[j]; } -- 1.7.6.4