diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-12-30 19:50:45 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-12-30 19:50:45 +0000 |
commit | 33826e7f1ade36e3c4c9d088b38edf91e75baa47 (patch) | |
tree | ee5e6be607ba39dfe0396f531aed70e8ecbffbd4 | |
parent | Don't add upper() to context (diff) | |
download | netfs-33826e7f1ade36e3c4c9d088b38edf91e75baa47.tar.bz2 netfs-33826e7f1ade36e3c4c9d088b38edf91e75baa47.tar.xz netfs-33826e7f1ade36e3c4c9d088b38edf91e75baa47.zip |
Add missing call to fuse_opt_free_args in test
-rw-r--r-- | netfs/unittests/testFuse.cpp | 4 |
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); |