]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/libcephfs/test.cc: free cmount structure before return 1782/head
authorXing Lin <xinglin@cs.utah.edu>
Mon, 17 Mar 2014 06:00:28 +0000 (00:00 -0600)
committerXing Lin <xinglin@cs.utah.edu>
Wed, 7 May 2014 04:44:37 +0000 (22:44 -0600)
call ceph_shutdown to free cmount structure before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
src/test/libcephfs/test.cc

index 9d917f510384c0b746e986a331a44212f7035fec..e64e8311e4e494ea9d1b20dca6c78fb9069ed48f 100644 (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) {