From: Danny Al-Gaaf Date: Fri, 26 Jul 2013 19:13:54 +0000 (+0200) Subject: rgw/rgw_rest_log.cc: free 'handle' to prevent memory leak X-Git-Tag: v0.67-rc3~41^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a45e296c04a74a47566b67feab483f684a70d08b;p=ceph.git 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 --- diff --git a/src/rgw/rgw_rest_log.cc b/src/rgw/rgw_rest_log.cc index 544adbe79655..7b50986cb374 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() {