From 710423a6bc98baba55f065da0e256b13d8349255 Mon Sep 17 00:00:00 2001 From: "alexei.volkov.bugs%sun.com" Date: Wed, 17 May 2006 17:56:37 +0000 Subject: [PATCH] [Bug 337332] Leak in OpenNewDB (security/nss/lib/softoken/keydb.c). r=nelson git-svn-id: svn://10.0.0.236/trunk@197869 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/softoken/keydb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/security/nss/lib/softoken/keydb.c b/mozilla/security/nss/lib/softoken/keydb.c index 9b1b0d651d0..d2e535d90b7 100644 --- a/mozilla/security/nss/lib/softoken/keydb.c +++ b/mozilla/security/nss/lib/softoken/keydb.c @@ -34,7 +34,7 @@ * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ -/* $Id: keydb.c,v 1.44 2006-05-13 00:27:22 alexei.volkov.bugs%sun.com Exp $ */ +/* $Id: keydb.c,v 1.45 2006-05-17 17:56:32 alexei.volkov.bugs%sun.com Exp $ */ #include "lowkeyi.h" #include "seccomon.h" @@ -933,7 +933,7 @@ openNewDB(const char *appName, const char *prefix, const char *dbname, * local database we can update from. */ if (appName) { - NSSLOWKEYDBHandle *updateHandle = nsslowkey_NewHandle(updatedb); + NSSLOWKEYDBHandle *updateHandle; updatedb = dbopen( dbname, NO_RDONLY, 0600, DB_HASH, 0 ); if (!updatedb) { goto noupdate;