mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
Merge pull request #3890 from XunleiGFS/fix_C_TwoContexts
osdc: fix a memory leak in C_TwoContexts Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
23d2e5aade
@ -89,6 +89,13 @@ struct ObjectOperation {
|
||||
void finish(int r) {
|
||||
first->complete(r);
|
||||
second->complete(r);
|
||||
first = NULL;
|
||||
second = NULL;
|
||||
}
|
||||
|
||||
virtual ~C_TwoContexts() {
|
||||
delete first;
|
||||
delete second;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user