Commit a50745e6 authored by Gabriel Schulhof's avatar Gabriel Schulhof
Browse files

src: munmap(2) upon class instance destructor



Replace `OnScopeLeave` with a class whose instance destructor performs
the munmap(2).

Signed-off-by: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
Fixes: https://github.com/nodejs/node/issues/32532
PR-URL: https://github.com/nodejs/node/pull/32570


Co-Authored-By: default avatarAnna Henningsen <github@addaleax.net>
Co-Authored-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent 98b6b2d8
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