From 5e393813ff78ae0e06dfd95cc0d70e0798b5555f Mon Sep 17 00:00:00 2001 From: "nelson%bolyard.com" Date: Fri, 12 May 2006 23:37:58 +0000 Subject: [PATCH] Bug 337093. Remove dead code at label loser in function dbs_readBlob Patch by Jon Smirl , r=wtchang. Coverity bug --- security/nss/lib/softoken/dbmshim.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/security/nss/lib/softoken/dbmshim.c b/security/nss/lib/softoken/dbmshim.c index f72ead5cec8..4f4a0604a77 100644 --- a/security/nss/lib/softoken/dbmshim.c +++ b/security/nss/lib/softoken/dbmshim.c @@ -37,7 +37,7 @@ /* * Berkeley DB 1.85 Shim code to handle blobs. * - * $Id: dbmshim.c,v 1.11 2005-03-29 18:21:18 nelsonb%netscape.com Exp $ + * $Id: dbmshim.c,v 1.12 2006-05-12 23:37:58 nelson%bolyard.com Exp $ */ #include "mcom_db.h" #include "secitem.h" @@ -406,14 +406,6 @@ dbs_readBlob(DBS *dbsp, DBT *data) loser: /* preserve the error code */ error = PR_GetError(); - if (addr) { - if (mapfile) { - PORT_Assert(len != -1); - PR_MemUnmap(addr,len); - } else { - PORT_Free(addr); - } - } if (mapfile) { PR_CloseFileMap(mapfile); }