From 33826e7f1ade36e3c4c9d088b38edf91e75baa47 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 30 Dec 2020 19:50:45 +0000 Subject: Add missing call to fuse_opt_free_args in test --- netfs/unittests/testFuse.cpp | 4 ++-- 1 file 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(::fuse_loop, fs); -- cgit v1.2.3