libuv/src
Jason Ginchereau 8221f9b305 win: fix leaky fs request buffer
When a large number of buffers (>4) is passed into `uv_fs_read()` or
`uv_fs_write()`, a new buffer is dynamically allocated to hold a copy
of the request data. This change adds code in `uv_fs_req_cleanup()`
to free that buffer if it was allocated.

Refs: https://github.com/nodejs/node/issues/7191
Fixes: https://github.com/libuv/libuv/issues/1069
PR-URL: https://github.com/libuv/libuv/pull/1070
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-09-27 09:36:57 +02:00
..
unix unix: don't use alphasort in uv_fs_scandir() 2016-09-12 15:50:58 +02:00
win win: fix leaky fs request buffer 2016-09-27 09:36:57 +02:00
fs-poll.c unix, win: count null byte on UV_ENOBUFS 2016-03-03 09:23:10 +01:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c src: replace QUEUE_SPLIT with QUEUE_MOVE 2015-10-08 21:46:48 +02:00
uv-common.c unix: preserve loop->data across loop init/done 2016-07-30 10:49:19 +02:00
uv-common.h win: use the MSVC provided snprintf where possible 2015-09-29 09:01:33 +02:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00