mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
api: fix use-after-free in nvim_chan_send
This commit is contained in:
@@ -1333,7 +1333,8 @@ void nvim_chan_send(Integer chan, String data, Error *err)
|
||||
return;
|
||||
}
|
||||
|
||||
channel_send((uint64_t)chan, data.data, data.size, &error);
|
||||
channel_send((uint64_t)chan, data.data, data.size,
|
||||
false, &error);
|
||||
if (error) {
|
||||
api_set_error(err, kErrorTypeValidation, "%s", error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user