Fixes for:
CID
1054838 (#14 of 14): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable "rop" going out of scope leaks the
storage it points to.
CID
1054836 (#5 of 5): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable "rop" going out of scope leaks the
storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
} while (truncated);
ASSERT_EQ(10, i);
-
+ delete rop;
}
TEST(cls_rgw, test_log_trim)
ASSERT_EQ(9 - i, (int)entries.size());
ASSERT_EQ(0, (int)truncated);
}
+ delete rop;
}