We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5ca194 commit f391ab0Copy full SHA for f391ab0
1 file changed
LuaJIT-2.1/src/lj_api.c
@@ -281,9 +281,9 @@ LUALIB_API void luaL_checkany(lua_State *L, int idx)
281
282
if (mt)
283
{
284
- GCstr* str = lj_str_new(L, "MetaName", 8);
+ GCstr* str = lj_str_newlit(L, "MetaName");
285
cTValue* val = lj_tab_getstr(mt, str);
286
- lj_str_free(G(L), str);
+ // lj_str_free(G(L), str); // Lua GC takes care of our string
287
288
if (val && tvisstr(val))
289
0 commit comments