std: Fix double free in uv
This commit is contained in:
parent
d4351c9d39
commit
3ccf6f5932
@ -642,7 +642,7 @@ extern mod rustrt {
|
||||
fn rust_uv_addrinfo_as_sockaddr_in(input: *addrinfo) -> *sockaddr_in;
|
||||
fn rust_uv_addrinfo_as_sockaddr_in6(input: *addrinfo) -> *sockaddr_in6;
|
||||
fn rust_uv_malloc_buf_base_of(sug_size: libc::size_t) -> *u8;
|
||||
fn rust_uv_free_base_of_buf(+buf: uv_buf_t);
|
||||
fn rust_uv_free_base_of_buf(++buf: uv_buf_t);
|
||||
fn rust_uv_get_stream_handle_from_connect_req(
|
||||
connect_req: *uv_connect_t)
|
||||
-> *uv_stream_t;
|
||||
@ -661,8 +661,8 @@ extern mod rustrt {
|
||||
fn rust_uv_get_data_for_req(req: *libc::c_void) -> *libc::c_void;
|
||||
fn rust_uv_set_data_for_req(req: *libc::c_void,
|
||||
data: *libc::c_void);
|
||||
fn rust_uv_get_base_from_buf(+buf: uv_buf_t) -> *u8;
|
||||
fn rust_uv_get_len_from_buf(+buf: uv_buf_t) -> libc::size_t;
|
||||
fn rust_uv_get_base_from_buf(++buf: uv_buf_t) -> *u8;
|
||||
fn rust_uv_get_len_from_buf(++buf: uv_buf_t) -> libc::size_t;
|
||||
|
||||
// sizeof testing helpers
|
||||
fn rust_uv_helper_uv_tcp_t_size() -> libc::c_uint;
|
||||
|
Loading…
Reference in New Issue
Block a user