]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_cors.cc: fix the mem leak
authorKefu Chai <kchai@redhat.com>
Tue, 15 Nov 2016 06:42:35 +0000 (14:42 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 25 Apr 2017 07:02:21 +0000 (09:02 +0200)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c8a3777203482cabf6739a8ba69b127df8697628)

src/test/test_cors.cc

index 372988f172638c350603fddd1055aeec3eccd0a1..12cb43a6fabb7e3f009dbcd606ba1331ef24dd96 100644 (file)
@@ -904,6 +904,8 @@ int main(int argc, char *argv[]){
   }
 #endif
   finisher->stop();
+  delete g_test;
+  delete finisher;
   return 0;
 }