Fix a small memory leak and BS_OP_SYNC mishandling, now fio does not hang during primary-osd test
This commit is contained in:
+1
-1
@@ -420,7 +420,7 @@ void blockstore_impl_t::process_list(blockstore_op_t *op)
|
||||
// Allocate memory
|
||||
op->version = stable_count;
|
||||
op->retval = total_count;
|
||||
op->buf = memalign(MEM_ALIGNMENT, sizeof(obj_ver_id) * total_count);
|
||||
op->buf = malloc(sizeof(obj_ver_id) * total_count);
|
||||
if (!op->buf)
|
||||
{
|
||||
op->retval = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user