diff options
author | Santiago Gimeno <santiago.gimeno@gmail.com> | 2019-08-17 18:42:38 +0200 |
---|---|---|
committer | Santiago Gimeno <santiago.gimeno@gmail.com> | 2019-08-19 22:50:48 +0200 |
commit | d6fd0a529a3cdd24814cea7fafddb9472961ef18 (patch) | |
tree | c935b276609a123f9d8af9b1a80c171b6a83cd14 /test/test-tcp-bind-error.c | |
parent | 1de151700d30629090d6a06e47cb92d538601577 (diff) | |
download | libuv-d6fd0a529a3cdd24814cea7fafddb9472961ef18.tar.gz libuv-d6fd0a529a3cdd24814cea7fafddb9472961ef18.zip |
openbsd: fix uv_cpu_info
Make sure the `uv_cpu_info_t` array is fully freed in case of error.
Also, make it more robust by setting `count` to `0` and `cpu_info` to
`NULL` in case of error, so a subsequent call to `uv_free_cpu_info()`
does not segfault.
Refs: https://github.com/libuv/libuv/issues/2068
PR-URL: https://github.com/libuv/libuv/pull/2432
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'test/test-tcp-bind-error.c')
0 files changed, 0 insertions, 0 deletions