Remove unneeded uv_close on buffer
This commit is contained in:
parent
291dcfe41c
commit
525b1c02d0
@ -338,8 +338,6 @@ void async_write(uv_async_t *handle) {
|
|||||||
uv_write_t req;
|
uv_write_t req;
|
||||||
uv_write(&req, data->ctx->connect_req->handle, &data->buf, 1, NULL);
|
uv_write(&req, data->ctx->connect_req->handle, &data->buf, 1, NULL);
|
||||||
|
|
||||||
uv_close((uv_handle_t *) &data->buf, NULL);
|
|
||||||
|
|
||||||
free(data->buf.base);
|
free(data->buf.base);
|
||||||
free(data);
|
free(data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user