]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: delete block completion after it's finished
authorJosh Durgin <josh.durgin@dreamhost.com>
Sat, 12 Mar 2011 02:44:21 +0000 (18:44 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Sat, 12 Mar 2011 02:49:42 +0000 (18:49 -0800)
src/librbd.cc

index 050019cffb7188e85bf6dc4b6cf0bc574dc394ec..a9f42c9ffc1c72484248e31bc461f74984e2be12 100644 (file)
@@ -1201,6 +1201,7 @@ void rados_cb(rados_completion_t c, void *arg)
   dout(10) << "rados_cb" << dendl;
   AioBlockCompletion *block_completion = (AioBlockCompletion *)arg;
   block_completion->complete(rados_aio_get_return_value(c));
+  delete block_completion;
 }
 
 int aio_write(ImageCtx *ictx, off_t off, uint64_t len, const char *buf,