aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-08-13 08:03:56 +0100
committerLewis Russell <me@lewisr.dev>2023-08-13 11:23:17 +0100
commit8179d68dc1a90f47bfb307d73e71adc98883ae00 (patch)
tree63a85309d84f07b2061f3388e3fec2f5f8c1c0c7 /src/nvim/lua/executor.c
parente3ce025e55d7567dfc8ba5505ef27f112e75a8ad (diff)
downloadrneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.tar.gz
rneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.tar.bz2
rneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.zip
fix(treesitter): logger memory leak
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 9215926434..459c69f385 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -1302,6 +1302,9 @@ LuaRef nlua_ref(lua_State *lstate, nlua_ref_state_t *ref_state, int index)
return ref;
}
+// TODO(lewis6991): Currently cannot be run in __gc metamethods as they are
+// invoked in lua_close() which can be invoked after the ref_markers map is
+// destroyed in nlua_common_free_all_mem.
LuaRef nlua_ref_global(lua_State *lstate, int index)
{
return nlua_ref(lstate, nlua_global_refs, index);