diff --git a/modules/libjar/nsZipArchive.cpp b/modules/libjar/nsZipArchive.cpp index 2804090e28b..412b328d001 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; }