]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_metadata.cc: delete md_log (RGWMetadataLog) in destructor 470/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 26 Jul 2013 21:28:44 +0000 (23:28 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 26 Jul 2013 21:56:10 +0000 (23:56 +0200)
commitde51aac8acfc6db08a0823f65933943f274e70f0
tree01651f3c26743e77528704b938107adba6491c97
parenta45e296c04a74a47566b67feab483f684a70d08b
rgw/rgw_metadata.cc: delete md_log (RGWMetadataLog) in destructor

Call delete on md_log in the destructor.

CID 1054826 (#1 of 1): Resource leak in object (CTOR_DTOR_LEAK)
 1. alloc_new: Allocating memory by calling "new RGWMetadataLog(_cct, _store)".
 2. var_assign: Assigning: "this->md_log" = "new RGWMetadataLog(_cct, _store)".
 3. ctor_dtor_leak: The constructor allocates field "md_log" of
    "RGWMetadataManager" but the destructor and whatever functions it calls
    do not free it.

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