diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index fef7cd42cab..68c429d58f3 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -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; } };