Fix leaks detected by clang scan-build (only 1 of 4 may be important though)

This commit is contained in:
Vitaliy Filippov
2022-01-16 00:11:59 +03:00
parent 7bdd92ca4f
commit 77cc18420a
5 changed files with 4 additions and 1 deletions
+1
View File
@@ -207,6 +207,7 @@ int osd_t::submit_bitmap_subops(osd_op_t *cur_op, pg_t & pg)
std::vector<bitmap_request_t> *bitmap_requests = new std::vector<bitmap_request_t>();
if (collect_bitmap_requests(cur_op, pg, *bitmap_requests) < 0)
{
delete bitmap_requests;
return -1;
}
op_data->n_subops = 0;