From: Sage Weil Date: Thu, 18 Apr 2019 18:28:05 +0000 (-0500) Subject: mgr/BaseMgrModule: fix leak X-Git-Tag: v15.1.0~2889^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=36ff938014c636be735ac3c75bcb0e6c5dfa3837;p=ceph.git mgr/BaseMgrModule: fix leak Signed-off-by: Sage Weil --- diff --git a/src/mgr/BaseMgrModule.cc b/src/mgr/BaseMgrModule.cc index 1cdb0f09a81..ab252daa89e 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); }) ); });