mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
executor/executor: Free lcmd on error
This commit is contained in:
@@ -221,6 +221,9 @@ static int nlua_eval_lua_string(lua_State *lstate)
|
|||||||
if (luaL_loadbuffer(lstate, lcmd, lcmd_len, NLUA_EVAL_NAME)) {
|
if (luaL_loadbuffer(lstate, lcmd, lcmd_len, NLUA_EVAL_NAME)) {
|
||||||
nlua_error(lstate,
|
nlua_error(lstate,
|
||||||
_("E5107: Error while creating lua chunk for luaeval(): %.*s"));
|
_("E5107: Error while creating lua chunk for luaeval(): %.*s"));
|
||||||
|
if (lcmd != (char *)IObuff) {
|
||||||
|
xfree(lcmd);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (lcmd != (char *)IObuff) {
|
if (lcmd != (char *)IObuff) {
|
||||||
|
Reference in New Issue
Block a user