Free op->bs_op manually

This commit is contained in:
Vitaliy Filippov
2020-05-25 15:31:22 +03:00
parent 79bf57b6e2
commit 256a7f2667
5 changed files with 19 additions and 6 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ void osd_t::secondary_op_callback(osd_op_t *op)
}
op->reply.sec_list.stable_count = op->bs_op->version;
}
finish_op(op, op->bs_op->retval);
int retval = op->bs_op->retval;
delete op->bs_op;
op->bs_op = NULL;
finish_op(op, retval);
}
void osd_t::exec_secondary(osd_op_t *cur_op)