Skip to content

Commit

Permalink
Fix test memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Dec 27, 2022
1 parent f8632ed commit 37d3405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/array_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ static void test_array_replace(void **_CBOR_UNUSED(_state)) {
assert_true(cbor_array_replace(array, 0, three));
assert_int_equal(cbor_refcount(one), 1);
assert_int_equal(cbor_refcount(three), 2);
assert_uint8(cbor_array_get(array, 0), 3);
assert_uint8(cbor_array_get(array, 1), 2);
assert_uint8(cbor_move(cbor_array_get(array, 0)), 3);
assert_uint8(cbor_move(cbor_array_get(array, 1)), 2);

cbor_decref(&one);
cbor_decref(&three);
Expand Down

0 comments on commit 37d3405

Please sign in to comment.