diff --git a/src/blockstore_stable.cpp b/src/blockstore_stable.cpp index fb3b7098..003d3197 100644 --- a/src/blockstore_stable.cpp +++ b/src/blockstore_stable.cpp @@ -103,7 +103,7 @@ blockstore_op_t* blockstore_impl_t::selective_sync(blockstore_op_t *op) blockstore_op_t *sync_op = new blockstore_op_t; sync_op->opcode = BS_OP_SYNC; sync_op->buf = NULL; - sync_op->callback = [this](blockstore_op_t *sync_op) + sync_op->callback = [](blockstore_op_t *sync_op) { delete sync_op; }; @@ -244,7 +244,7 @@ int blockstore_impl_t::split_stab_op(blockstore_op_t *op, std::functioncallback](blockstore_op_t *split_op) {