]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore: potential memory leak if _fgetattrs fails 6420/head
authorxiexingguo <258156334@qq.com>
Mon, 26 Oct 2015 10:38:01 +0000 (18:38 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 29 Oct 2015 06:39:34 +0000 (07:39 +0100)
commit74203b806e8c268aa3edac8cfc7c4b393f7b1f27
treeef4c590bda0a02a72aa974843ee7bfe9fae32aa3
parent9764da52395923e0b32908d83a9f7304401fee43
FileStore: potential memory leak if _fgetattrs fails

Memory leak happens if _fgetattrs encounters some error and simply returns.
Fixes: #13597
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit ace7dd096b58a88e25ce16f011aed09269f2a2b4)
src/os/FileStore.cc