From ef6e49c6b2aa66782b16b92fcda54dc145cb9dfc Mon Sep 17 00:00:00 2001 From: "alexei.volkov.bugs%sun.com" Date: Wed, 17 May 2006 17:56:32 +0000 Subject: [PATCH] [Bug 337332] Leak in OpenNewDB (security/nss/lib/softoken/keydb.c). r=nelson --- security/nss/lib/softoken/keydb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c index 9e21008a116e..6f613272fe4c 100644 --- a/security/nss/lib/softoken/keydb.c +++ b/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;