Commit fd34813b authored by John Esmet's avatar John Esmet

FT-292 Fix leak in comparator-test

parent 0cf1c50c
...@@ -122,6 +122,7 @@ static void test_desc(void) { ...@@ -122,6 +122,7 @@ static void test_desc(void) {
expected_desc = &d2; expected_desc = &d2;
c = cmp(&dbt_a, &dbt_b); c = cmp(&dbt_a, &dbt_b);
invariant(c == MAGIC); invariant(c == MAGIC);
cmp2.destroy();
// go back to using d1, but using the create_from API // go back to using d1, but using the create_from API
toku::comparator cmp3, cmp4; toku::comparator cmp3, cmp4;
...@@ -132,6 +133,8 @@ static void test_desc(void) { ...@@ -132,6 +133,8 @@ static void test_desc(void) {
invariant(c == MAGIC); invariant(c == MAGIC);
c = cmp4(&dbt_a, &dbt_b); c = cmp4(&dbt_a, &dbt_b);
invariant(c == MAGIC); invariant(c == MAGIC);
cmp3.destroy();
cmp4.destroy();
cmp.destroy(); cmp.destroy();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment