fix(tests): use correct signature for unpacker_teardown()

This commit is contained in:
bfredl
2025-11-12 13:57:56 +01:00
committed by Christian Clason
parent ce8842998b
commit d84e786112

View File

@@ -14,7 +14,7 @@ local to_cstr = t.to_cstr
--- @return Unpacker* unpacker `unpacker[0]` to dereference
local function make_unpacker()
return ffi.gc(ffi.cast('Unpacker*', lib.xcalloc(1, ffi.sizeof('Unpacker'))), function(unpacker)
lib.unpacker_teardown(unpacker, nil, nil)
lib.unpacker_teardown(unpacker)
lib.xfree(unpacker)
end)
end