libuv/src
cjihrig 5fb9517200
unix,win: make uv_interface_addresses() consistent
This commit does a few things to make the function more
consistent across platforms:

- Initialize the output parameters before everything else.
- Return early if there are no interfaces instead of performing
  zero-sized allocations.
- Add a missing memory deallocation.

Refs: https://github.com/libuv/libuv/pull/2035
PR-URL: https://github.com/libuv/libuv/pull/2039
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2018-10-15 14:49:13 -04:00
..
unix unix,win: make uv_interface_addresses() consistent 2018-10-15 14:49:13 -04:00
win unix,win: make uv_interface_addresses() consistent 2018-10-15 14:49:13 -04:00
fs-poll.c unix,win: merge handle flags 2018-06-29 22:24:52 +02:00
heap-inl.h
inet.c win: move stdint-msvc2008.h to include/uv/ 2018-06-14 18:40:09 +02:00
queue.h
threadpool.c unix,win: fix threadpool race condition 2018-10-07 15:50:57 -07: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: limit concurrent DNS calls to nthreads/2 2018-08-21 10:48:24 +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