Skip to content

Commit

Permalink
Merge pull request #9941 from weiqiaomiao/wqm-wip-fetchobj
Browse files Browse the repository at this point in the history
rgw: fix memory leak in RGWRados::fetch_remote_obj()

lgtm
  • Loading branch information
mattbenjamin committed Jul 1, 2016
2 parents 06178de + dd7690f commit 097f3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rados.cc
Expand Up @@ -6657,7 +6657,7 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx,
/* need to get mtime for destination */
ret = get_obj_state(&obj_ctx, dest_obj, &dest_state, NULL);
if (ret < 0)
return ret;
goto set_err_state;

if (!real_clock::is_zero(dest_state->mtime)) {
dest_mtime_weight.init(dest_state);
Expand Down

0 comments on commit 097f3e4

Please sign in to comment.