mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fix(lua): only free luarefs when returning from API (#28373)
This commit is contained in:
@@ -449,7 +449,7 @@ int nlua_getvar(lua_State *lstate)
|
||||
if (di == NULL) {
|
||||
return 0; // nil
|
||||
}
|
||||
nlua_push_typval(lstate, &di->di_tv, false);
|
||||
nlua_push_typval(lstate, &di->di_tv, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user