&cb);
auto c = p->_cur;
p.release();
+ // coverity[RESOURCE_LEAK:FALSE]
return c;
}
static void complete(Ptr&& p, int r) {
int ret = store->gc_aio_operate(obj_names[i], state->completion, &op);
if (ret == 0) {
+ // coverity[RESOURCE_LEAK:FALSE]
state.release(); // release ownership until async_defer_callback()
}
return ret;
std::move(f)(this, *static_cast<AioResult*>(p.get()));
lock.lock();
}
+ // coverity[RESOURCE_LEAK:FALSE]
p.release();
return std::move(completed);
}
pending.push_back(*p);
std::move(f)(this, *static_cast<AioResult*>(p.get()));
}
+ // coverity[RESOURCE_LEAK:FALSE]
p.release();
return std::move(completed);
}
auto ec = boost::system::error_code{-ret, boost::system::system_category()};
ceph::async::post(std::move(p), ec, bufferlist{});
} else {
+ // coverity[RESOURCE_LEAK:FALSE]
(void)p.release();
}
return init.result.get();
} else {
ldout(conn->cct, 20) << "Kafka publish (no callback): OK" << dendl;
}
+ // coverity[RESOURCE_LEAK:FALSE]
}
// the managers thread:
std::unique_lock l{lock};
if (going_down)
return -ECANCELED;
+ // requests is a boost::intrusive::list, which manages pointers and does not copy the instance
+ // coverity[RESOURCE_LEAK:FALSE]
requests.push_back(*new Request{*req});
l.unlock();
if (worker)
history->periods.push_back(current_period);
// insert as our current history
+ // coverity[RESOURCE_LEAK:FALSE]
current_history = histories.insert(*history).first;
// get a cursor to the current period
// create a new history for this period
auto history = new History;
history->periods.emplace_back(std::move(period));
+ // coverity[RESOURCE_LEAK:FALSE]
histories.insert(last, *history);
i = Set::s_iterator_to(*history);
// create a new history for this period
auto history = new History;
history->periods.emplace_back(std::move(period));
+ // coverity[RESOURCE_LEAK:FALSE]
histories.insert(i, *history);
i = Set::s_iterator_to(*history);