test/libcephfs/test.cc: free cmount structure before return

call ceph_shutdown to free cmount structure before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
This commit is contained in:
Xing Lin 2014-03-17 00:00:28 -06:00
parent b7134c9a2e
commit 0d3cdb9fdb

View File

@ -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) {