For correctness reasons this ought to be done after the uv_fs_read() call on line 2590. It works okay now because libuv doesn't allocate for a single buffer (i.e. this cleanup call is a no-op) but that's a lucky accident.
Originally posted by @bnoordhuis in nodejs/node#49691 (comment)
node_file.cc
For correctness reasons this ought to be done after the uv_fs_read() call on line 2590. It works okay now because libuv doesn't allocate for a single buffer (i.e. this cleanup call is a no-op) but that's a lucky accident.
Originally posted by @bnoordhuis in nodejs/node#49691 (comment)
node_file.cc