diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2012-11-19 16:52:38 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2012-11-21 13:11:41 -0800 |
commit | 17e4c0df44781f5ff1d74f3800722452b6a0fc58 (patch) | |
tree | d3a4c7ee5dcc86b361408c98db20a4c0655310de /src/rgw/rgw_op.h | |
parent | cd18b9f43cce68ac3d8f109e82a5b603f9caad9b (diff) | |
download | ceph-17e4c0df44781f5ff1d74f3800722452b6a0fc58.tar.gz |
rgw: fix memory leaks
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 98a04d76ebffa61c3ba4b033cdd57ac57b2f29f3)
Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
Diffstat (limited to 'src/rgw/rgw_op.h')
-rw-r--r-- | src/rgw/rgw_op.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index be4087fa941..7fdd242639e 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -446,6 +446,10 @@ public: len = 0; data = NULL; } + virtual ~RGWPutACLs() { + free(data); + } + int verify_permission(); void execute(); @@ -497,6 +501,10 @@ public: data = NULL; len = 0; } + virtual ~RGWCompleteMultipart() { + free(data); + } + int verify_permission(); void execute(); |