From 36ff938014c636be735ac3c75bcb0e6c5dfa3837 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Apr 2019 13:28:05 -0500 Subject: [PATCH] mgr/BaseMgrModule: fix leak Signed-off-by: Sage Weil --- src/mgr/BaseMgrModule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgr/BaseMgrModule.cc b/src/mgr/BaseMgrModule.cc index 1cdb0f09a817e..ab252daa89ea8 100644 --- a/src/mgr/BaseMgrModule.cc +++ b/src/mgr/BaseMgrModule.cc @@ -154,7 +154,7 @@ ceph_send_command(BaseMgrModule *self, PyObject *args) auto c = new FunctionContext([command_c, self](int command_r){ self->py_modules->get_objecter().wait_for_latest_osdmap( new FunctionContext([command_c, command_r](int wait_r){ - command_c->finish(command_r); + command_c->complete(command_r); }) ); }); -- 2.39.5