diff --git a/src/lcutils.c b/src/lcutils.c index 5b85774..adf895a 100644 --- a/src/lcutils.c +++ b/src/lcutils.c @@ -115,8 +115,8 @@ int lcurl_storage_free(lua_State *L, int storage){ lua_pop(L, 1); } } - lua_pop(L, 1); luaL_unref(L, LCURL_LUA_REGISTRY, storage); + lua_pop(L, 2); return LUA_NOREF; }