Fix. Pop all element from stack in the storage free function

This commit is contained in:
Alexey Melnichuk 2021-01-07 00:44:22 +03:00
parent e0cfae1c1a
commit 7e99e8afa4

View File

@ -115,8 +115,8 @@ int lcurl_storage_free(lua_State *L, int storage){
lua_pop(L, 1); lua_pop(L, 1);
} }
} }
lua_pop(L, 1);
luaL_unref(L, LCURL_LUA_REGISTRY, storage); luaL_unref(L, LCURL_LUA_REGISTRY, storage);
lua_pop(L, 2);
return LUA_NOREF; return LUA_NOREF;
} }