mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
channel.c:call_set_error(): fix memory leak
This commit is contained in:
@@ -868,6 +868,7 @@ static void call_set_error(Channel *channel, char *msg, int loglevel)
|
||||
ChannelCallFrame *frame = kv_A(channel->call_stack, i);
|
||||
frame->returned = true;
|
||||
frame->errored = true;
|
||||
api_free_object(frame->result);
|
||||
frame->result = STRING_OBJ(cstr_to_string(msg));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user