]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix double free issue for CacheGenContextURef
authorshangdehao1 <dehao.shang@intel.com>
Sun, 26 May 2019 18:53:34 +0000 (02:53 +0800)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Jun 2019 21:35:40 +0000 (17:35 -0400)
Signed-off-by: Dehao Shang <dehao.shang@intel.com>
src/tools/immutable_object_cache/CacheClient.cc

index fa533029efa92210e101efea60c9ce3a329410e0..20b2627c59bf42e100c1a913679fd0671f382674 100644 (file)
@@ -249,9 +249,9 @@ namespace immutable_obj_cache {
        if (dedicated) {
          // dedicated thrad to execute this context.
        }
-       current_request->process_msg->complete(reply);
-       //delete current_request;
-       //delete reply;
+       current_request->process_msg.release()->complete(reply);
+       delete current_request;
+       delete reply;
     });
 
     if (m_worker_thread_num != 0) {