Skip to content

Commit 87895e9

Browse files
cleanup
1 parent cbc300e commit 87895e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/XXHashTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ static int s_TestXXHash64Piping(struct aws_allocator *allocator, void *)
2929

3030
ASSERT_BIN_ARRAYS_EQUALS(result.buffer, result.len, expected, sizeof(expected));
3131

32+
aws_byte_buf_clean_up(&result);
33+
3234
return AWS_OP_SUCCESS;
3335
}
3436
AWS_TEST_CASE(XXHash64Piping, s_TestXXHash64Piping)
@@ -56,6 +58,8 @@ static int s_TestXXHash3_64Piping(struct aws_allocator *allocator, void *)
5658

5759
ASSERT_BIN_ARRAYS_EQUALS(result.buffer, result.len, expected, sizeof(expected));
5860

61+
aws_byte_buf_clean_up(&result);
62+
5963
return AWS_OP_SUCCESS;
6064
}
6165
AWS_TEST_CASE(XXHash3_64Piping, s_TestXXHash3_64Piping)
@@ -84,6 +88,8 @@ static int s_TestXXHash3_128Piping(struct aws_allocator *allocator, void *)
8488

8589
ASSERT_BIN_ARRAYS_EQUALS(result.buffer, result.len, expected, sizeof(expected));
8690

91+
aws_byte_buf_clean_up(&result);
92+
8793
return AWS_OP_SUCCESS;
8894
}
8995
AWS_TEST_CASE(XXHash3_128Piping, s_TestXXHash3_128Piping)

0 commit comments

Comments
 (0)