mirror of
https://github.com/ceph/ceph
synced 2025-03-23 18:58:41 +00:00
Merge pull request #16159 from tchaikov/wip-20432
Context: C_ContextsBase: delete enclosed contexts in dtor Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
9038bb3d62
@ -217,7 +217,11 @@ public:
|
|||||||
: cct(cct_)
|
: cct(cct_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
~C_ContextsBase() override {
|
||||||
|
for (auto c : contexts) {
|
||||||
|
delete c;
|
||||||
|
}
|
||||||
|
}
|
||||||
void add(ContextType* c) {
|
void add(ContextType* c) {
|
||||||
contexts.push_back(c);
|
contexts.push_back(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user