Skip to content

Commit

Permalink
FT-292 Fix leak in comparator-test
Browse files Browse the repository at this point in the history
  • Loading branch information
esmet committed Jul 3, 2014
1 parent 85d55da commit c81c06b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ft/tests/comparator-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ static void test_desc(void) {
expected_desc = &d2;
c = cmp(&dbt_a, &dbt_b);
invariant(c == MAGIC);
cmp2.destroy();

// go back to using d1, but using the create_from API
toku::comparator cmp3, cmp4;
Expand All @@ -132,6 +133,8 @@ static void test_desc(void) {
invariant(c == MAGIC);
c = cmp4(&dbt_a, &dbt_b);
invariant(c == MAGIC);
cmp3.destroy();
cmp4.destroy();

cmp.destroy();
}
Expand Down

0 comments on commit c81c06b

Please sign in to comment.