mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
Try to fix problem found in the Travis Ci build.
An uv_pipe_t handle for a WStream could be left open for a particular code path. Patch by tarruda.
This commit is contained in:
@@ -230,7 +230,11 @@ static void write_cb(uv_write_t *req, int status)
|
|||||||
|
|
||||||
if (data->wstream->freed && data->wstream->pending_reqs == 0) {
|
if (data->wstream->freed && data->wstream->pending_reqs == 0) {
|
||||||
// Last pending write, free the wstream;
|
// Last pending write, free the wstream;
|
||||||
free(data->wstream);
|
if (data->wstream->free_handle) {
|
||||||
|
uv_close((uv_handle_t *)data->wstream->stream, close_cb);
|
||||||
|
} else {
|
||||||
|
free(data->wstream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kmp_free(WRequestPool, wrequest_pool, data);
|
kmp_free(WRequestPool, wrequest_pool, data);
|
||||||
|
Reference in New Issue
Block a user