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

This commit is contained in:
Taras Glek 2009-12-03 01:25:39 -06:00
parent ec59647331
commit 078d38fddb

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;
}