]> git.apps.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>
Tue, 7 Jun 2016 20:28:44 +0000 (13:28 -0700)
commitbf26b6eeb7fb806bff0ee306467277a273dcc887
tree794313c7c472907f31be96bd08142b1f118fa4ec
parent36672c61be8289ba00dd694c92cd9057dbf5cf29
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>
(cherry picked from commit 2fd7bc8cbe4a2e23553e716ce0be75937853e07b)
src/rgw/rgw_rest_s3.cc