]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_rest_log.cc: free 'handle' to prevent memory leak
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 26 Jul 2013 19:13:54 +0000 (21:13 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 26 Jul 2013 21:55:57 +0000 (23:55 +0200)
commita45e296c04a74a47566b67feab483f684a70d08b
treed3f96be390ac39d0a123aac1ffc621074cb50abc
parent94cefc7765450173ca20cf5b6a1ed374580dcc5e
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>
src/rgw/rgw_rest_log.cc