]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: fix a memory leak 29915/head
authorXiao Guodong <xiaogd@inspur.com>
Thu, 25 Jul 2019 06:50:49 +0000 (14:50 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 26 Aug 2019 23:52:01 +0000 (19:52 -0400)
commitfa2824384fe3ba2705676a4a5cbb3df8d6df9c9e
tree68c962511e525ad75880ac9beb8c76ce75f414a3
parent692a678a00919bcce61c0ee46a3adbdeee8265e9
cephfs: fix a memory leak
use a smart pointer instead of using 'new' to resolve a memory leak .

Fixes: https://tracker.ceph.com/issues/40936
Signed-off-by: XiaoGuoDong2019 <xiaogd@inspur.com>
(cherry picked from commit 648730c6028d54f6143d130d4882c66bf06453cd)
src/tools/cephfs/Resetter.cc