mirror of
https://github.com/ceph/ceph
synced 2025-01-31 07:22:56 +00:00
Merge pull request #3918 from tchaikov/hammer-fix-leaks-in-C_TwoContexts
osdc: fix a memory leak in C_TwoContexts Reviewed-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
commit
773039d313
@ -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