Bug 337093. Remove dead code at label loser in function dbs_readBlob

Patch by Jon Smirl <jonsmirl@yahoo.com>, r=wtchang.  Coverity bug
This commit is contained in:
nelson%bolyard.com 2006-05-12 23:37:58 +00:00
Родитель c329d39166
Коммит 28a533ac47
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -37,7 +37,7 @@
/* /*
* Berkeley DB 1.85 Shim code to handle blobs. * 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 "mcom_db.h"
#include "secitem.h" #include "secitem.h"
@ -406,14 +406,6 @@ dbs_readBlob(DBS *dbsp, DBT *data)
loser: loser:
/* preserve the error code */ /* preserve the error code */
error = PR_GetError(); error = PR_GetError();
if (addr) {
if (mapfile) {
PORT_Assert(len != -1);
PR_MemUnmap(addr,len);
} else {
PORT_Free(addr);
}
}
if (mapfile) { if (mapfile) {
PR_CloseFileMap(mapfile); PR_CloseFileMap(mapfile);
} }