libuv/src
Shelley Vohr 5124b27d35
src: add new error apis to prevent memory leaks
This PR creates two new externally-facing APIs, uv_err_name_r() and
uv_strerror_r().

In keeping with the precedent set by POSIX, the *_r() suffix of these
two new methods indicate that the caller does the memory management and
passes in the memory that the output will be stored in, which provides
an alternative for the two existent methods (uv_err_name() and
uv_strerror()), which, when called with an unknown error code, leak a
few bytes of memory.

PR-URL: https://github.com/libuv/libuv/pull/1898
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno santiago.gimeno@gmail.com
2018-07-06 19:35:21 +02:00
..
unix unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
win unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
fs-poll.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c win: move stdint-msvc2008.h to include/uv/ 2018-06-14 18:40:09 +02:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
threadpool.c unix,win: wait for threads to start 2017-12-06 23:47:38 +01:00
timer.c unix,win: merge timers implementation 2018-06-25 23:48:15 +02:00
uv-common.c src: add new error apis to prevent memory leaks 2018-07-06 19:35:21 +02:00
uv-common.h unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
uv-data-getter-setters.c core: add getter/setter functions for easier ABI compat 2017-12-02 09:51:25 +01:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00