diff --git a/modules/libjar/nsZipArchive.cpp b/modules/libjar/nsZipArchive.cpp index 2804090e28b2..412b328d001a 100644 --- a/modules/libjar/nsZipArchive.cpp +++ b/modules/libjar/nsZipArchive.cpp @@ -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; }