summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/unittests/testFuse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/unittests/testFuse.cpp b/netfs/unittests/testFuse.cpp
index 0a466d5..ea58cc7 100644
--- a/netfs/unittests/testFuse.cpp
+++ b/netfs/unittests/testFuse.cpp
@@ -21,12 +21,12 @@ public:
{
std::filesystem::remove(mntpnt);
std::filesystem::create_directory(mntpnt);
- struct fuse_args fargs {
- };
+ fuse_args fargs {};
::fuse_opt_add_arg(&fargs, "-onoauto_cache");
::fuse_opt_add_arg(&fargs, "-oattr_timeout=0");
::fuse_opt_add_arg(&fargs, "-oac_attr_timeout=0");
fs = ::fuse_new(&fargs, &operations, sizeof(fuse_operations), this);
+ ::fuse_opt_free_args(&fargs);
BOOST_REQUIRE(fs);
BOOST_REQUIRE_EQUAL(0, ::fuse_mount(fs, mntpnt.c_str()));
th = std::make_unique<std::thread>(::fuse_loop, fs);