Skip to content

Commit

Permalink
Fix memory leak in tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Dec 28, 2022
1 parent f856f72 commit 61539bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tag_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static void test_build_tag(void **_CBOR_UNUSED(_state)) {

assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG);
assert_int_equal(cbor_tag_value(tag), 1);
assert_uint8(cbor_tag_item(tag), 42);
assert_uint8(cbor_move(cbor_tag_item(tag)), 42);

cbor_decref(&tag);
}
Expand Down

0 comments on commit 61539bd

Please sign in to comment.