diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-26 21:13:54 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-26 23:55:57 +0200 |
commit | a45e296c04a74a47566b67feab483f684a70d08b (patch) | |
tree | d3f96be390ac39d0a123aac1ffc621074cb50abc | |
parent | 94cefc7765450173ca20cf5b6a1ed374580dcc5e (diff) | |
download | ceph-a45e296c04a74a47566b67feab483f684a70d08b.tar.gz |
rgw/rgw_rest_log.cc: free 'handle' to prevent memory leak
Call complete_list_entries() at end of RGWOp_MDLog_List::execute()
to free the 'handle'.
CID 1054834 (#1-2 of 2): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable "handle" going out of scope leaks the
storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/rgw/rgw_rest_log.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_log.cc b/src/rgw/rgw_rest_log.cc index 544adbe7965..7b50986cb37 100644 --- a/src/rgw/rgw_rest_log.cc +++ b/src/rgw/rgw_rest_log.cc @@ -88,6 +88,8 @@ void RGWOp_MDLog_List::execute() { if (!max_entries_str.empty()) max_entries -= entries.size(); } while (truncated && (max_entries > 0)); + + meta_log->complete_list_entries(handle); } void RGWOp_MDLog_List::send_response() { |