зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c329d39166
Коммит
28a533ac47
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче