Skip to content

Commit

Permalink
Merge pull request ceph#13998 from wangzhengyong/aio_complete
Browse files Browse the repository at this point in the history
rgw: fix memory leak in delete_obj_aio

Reviewed-by: Yehuda Sadeh <[email protected]>
Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley authored Apr 4, 2017
2 parents 6be45f8 + 32c405b commit 5b37718
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12973,6 +12973,7 @@ int RGWRados::delete_raw_obj_aio(const rgw_raw_obj& obj, list<librados::AioCompl
ret = ref.ioctx.aio_operate(ref.oid, c, &op);
if (ret < 0) {
lderr(cct) << "ERROR: AioOperate failed with ret=" << ret << dendl;
c->release();
return ret;
}

Expand Down Expand Up @@ -13011,6 +13012,7 @@ int RGWRados::delete_obj_aio(const rgw_obj& obj,
ret = ref.ioctx.aio_operate(ref.oid, c, &op);
if (ret < 0) {
lderr(cct) << "ERROR: AioOperate failed with ret=" << ret << dendl;
c->release();
return ret;
}

Expand Down

0 comments on commit 5b37718

Please sign in to comment.