Skip to content

buffer: do not leak memory if buffer is too big

A recent pull request changed this method to throw when the buffer was too big, but this meant that the free finalizer would never get called, leading to a memory leak.

Refs: https://github.com/nodejs/node/pull/40243

Merge request reports

Loading