]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_cls_statelog.cc: fix resource leak, delete rop at end of function
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 22 Jul 2013 10:38:21 +0000 (12:38 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 22 Jul 2013 10:58:28 +0000 (12:58 +0200)
CID 1049215 (#12 of 12): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "rop" going out of scope leaks the
  storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/cls_statelog/test_cls_statelog.cc

index 294b528f5db2ce97efb9c8108620b0a923689219..04861669915f73f9fb9a9fded8735bf80162b57d 100644 (file)
@@ -203,5 +203,6 @@ TEST(cls_rgw, test_statelog_basic)
   string empty_str;
   get_entries_by_client_id(ioctx, oid, entries, e.client_id, empty_str, 4);
   get_entries_by_object(ioctx, oid, entries, e.object, empty_str, 1);
+  delete rop;
 }