Skip to content

Commit 7e99e8a

Browse files
committed
Fix. Pop all element from stack in the storage free function
1 parent e0cfae1 commit 7e99e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lcutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ int lcurl_storage_free(lua_State *L, int storage){
115115
lua_pop(L, 1);
116116
}
117117
}
118-
lua_pop(L, 1);
119118
luaL_unref(L, LCURL_LUA_REGISTRY, storage);
119+
lua_pop(L, 2);
120120
return LUA_NOREF;
121121
}
122122

0 commit comments

Comments
 (0)