module: fix memory leak when require error occurs
Delete useless module in parent module: parent.children array when error occurs, so that it can be garbage collected. Fixes: https://github.com/nodejs/node/issues/32836 PR-URL: https://github.com/nodejs/node/pull/32837 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Andrey Pechkurov <apechkurov@gmail.com>
parent
a72d1d3a
Please register or sign in to comment