From: Xing Lin Date: Mon, 17 Mar 2014 06:00:28 +0000 (-0600) Subject: test/libcephfs/test.cc: free cmount structure before return X-Git-Tag: v0.81~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1782%2Fhead;p=ceph.git test/libcephfs/test.cc: free cmount structure before return call ceph_shutdown to free cmount structure before return Signed-off-by: Xing Lin --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index 9d917f510384..e64e8311e4e4 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -110,6 +110,7 @@ TEST(LibCephFS, UnmountUnmounted) { ASSERT_EQ(0, ceph_conf_parse_env(cmount, NULL)); ASSERT_EQ(0, ceph_conf_read_file(cmount, NULL)); ASSERT_EQ(-ENOTCONN, ceph_unmount(cmount)); + ceph_shutdown(cmount); } TEST(LibCephFS, ReleaseUnmounted) {