Skip to content

Commit

Permalink
Free test buffers afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Zheng committed Apr 6, 2016
1 parent 6a8bef5 commit 2a70944
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/src/arrow/util/buffer-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ TEST_F(TestBuffer, EqualsWithSameContent) {
Buffer buffer3(rawBuffer3, bufferSize);
ASSERT_TRUE(buffer1.Equals(buffer2));
ASSERT_FALSE(buffer1.Equals(buffer3));

pool->Free(rawBuffer1, bufferSize);
pool->Free(rawBuffer2, bufferSize);
pool->Free(rawBuffer3, bufferSize);
}

TEST_F(TestBuffer, EqualsWithSameBuffer) {
Expand All @@ -88,6 +92,8 @@ TEST_F(TestBuffer, EqualsWithSameBuffer) {
Buffer buffer3(rawBuffer, nbytes);
ASSERT_TRUE(buffer1.Equals(buffer3, nbytes));
ASSERT_FALSE(buffer1.Equals(buffer3, nbytes + 1));

pool->Free(rawBuffer, bufferSize);
}

} // namespace arrow

0 comments on commit 2a70944

Please sign in to comment.