Skip to content

Commit fecbaf3

Browse files
committed
luajit: small changes
1 parent b5ca194 commit fecbaf3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

LuaJIT-2.1/src/lj_api.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,8 @@ LUALIB_API void luaL_checkany(lua_State *L, int idx)
281281

282282
if (mt)
283283
{
284-
GCstr* str = lj_str_new(L, "MetaName", 8);
284+
GCstr* str = lj_str_newlit(L, "MetaName");
285285
cTValue* val = lj_tab_getstr(mt, str);
286-
lj_str_free(G(L), str);
287286

288287
if (val && tvisstr(val))
289288
{

0 commit comments

Comments
 (0)