mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 531231 - "Incorrect mmap cleanup" [r=alfredkayser]
This commit is contained in:
parent
ec59647331
commit
078d38fddb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user