Skip to content

Commit

Permalink
fix memory leakage in processor test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed May 15, 2024
1 parent 20bb965 commit 0be6129
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/cpp/processing/test_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ TEST_F(ProcessorTest, TestGHEncoding) {
// Dummy plugin doesn't change buffer
ASSERT_EQ(new_size, buf_size);
ASSERT_EQ(0, memcmp(buffer, new_buffer, buf_size));

// Clean up
free(buffer);
free(new_buffer);
}

TEST_F(ProcessorTest, TestAggregation) {
Expand Down

0 comments on commit 0be6129

Please sign in to comment.