Bug 531231 - "Incorrect mmap cleanup" [r=alfredkayser]

This commit is contained in:
Taras Glek 2009-12-03 01:25:39 -06:00
parent 2eb56202ec
commit 55534754ff

View File

@ -190,6 +190,7 @@ nsresult nsZipHandle::Init(PRFileDesc *fd, nsZipHandle **ret)
nsZipHandle *handle = new nsZipHandle();
if (!handle) {
PR_MemUnmap(buf, size);
PR_CloseFileMap(map);
return NS_ERROR_OUT_OF_MEMORY;
}