mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix memory leak detected in PR 1510.
LSAN/ASAN detected, on an error code path, that not all elements of a struct ChannelCallFrame were freed.
This commit is contained in:
parent
41f1678767
commit
e2e63832e3
@ -241,6 +241,7 @@ Object channel_send_call(uint64_t id,
|
||||
|
||||
if (frame.errored) {
|
||||
api_set_error(err, Exception, "%s", frame.result.data.string.data);
|
||||
api_free_object(frame.result);
|
||||
return NIL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user