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:
Samuel Just 2015-03-17 10:28:19 -07:00
commit 773039d313

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