win: fix memory leak inside uv__pipe_getname
PR-URL: https://github.com/libuv/libuv/pull/1265 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
87df1448a4
commit
9d94fd978f
@ -2072,7 +2072,6 @@ static int uv__pipe_getname(const uv_pipe_t* handle, char* buffer, size_t* size)
|
||||
buffer[addrlen] = '\0';
|
||||
|
||||
err = 0;
|
||||
goto cleanup;
|
||||
|
||||
error:
|
||||
uv__free(name_info);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user