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