Unverified Commit 0c30d0e4 authored by Anna Henningsen's avatar Anna Henningsen
Browse files

zlib: fix memory leak for invalid input

Don’t toggle the weak/strong reference flag from the error
handler, that’s too confusing. Instead, always do it in the
code that handles the write call.

Fixes: https://github.com/nodejs/node/issues/22705

PR-URL: https://github.com/nodejs/node/pull/22713


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 2bf4697f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment