Commit c81c06bd authored by John Esmet's avatar John Esmet

FT-292 Fix leak in comparator-test

parent 85d55da2
......@@ -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;
......@@ -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();
}
......
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