-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Version: Deno 2.4.3
import * as ZLib from "node:zlib";
const file = 'myfile.html';
const data = await Deno.readFile(file);
const br = ZLib.brotliCompressSync(data, { params: { [ZLib.constants.BROTLI_PARAM_QUALITY]: 5 } });
await Deno.writeFile(`${file}.br`, br);
The code works perfectly under Deno 2.4.2.
Under Deno 2.4.3, the following error messages appear:
leaking memory block of length 32768 element size: 2
leaking memory block of length 8388608 element size: 4
leaking memory block of length 31056 element size: 1
leaking memory block of length 23301 element size: 16
leaking memory block of length 62621 element size: 1
After downgrading to 2.4.2, it works again.
I have not yet tested the asynchronous version.
Edit: Same problem with promisify(ZLib.brotliCompress);
I use Linux Kubuntu 25.04.
Metadata
Metadata
Assignees
Labels
No labels