]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/s3website: Fix ErrocDoc memory leak.
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 18 May 2016 00:35:41 +0000 (17:35 -0700)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 18 May 2016 00:40:25 +0000 (17:40 -0700)
commit2fd7bc8cbe4a2e23553e716ce0be75937853e07b
tree6164789b40354abcfe1fed8fcbd2e0857a09ed8c
parentfcb3cf169f1fa7cf878eb154dc3f1ff78e278056
rgw/s3website: Fix ErrocDoc memory leak.

Yehuda pointed [1] out a memory leak with the RGWGetObj not being handed back, and
suggested that shared_ptr was used to handle it, rather than the prior approach
of explicitly calling handler->put_op.

This commit implements just that change, in isolation from other changes, for
ease of comparision testing.

X-Reference-1: https://github.com/ceph/ceph/pull/8669#discussion_r63445516
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
src/rgw/rgw_rest_s3.cc