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:
Kefu Chai 2015-03-10 12:16:03 +08:00
commit 23d2e5aade

View File

@ -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;
}
};