]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/swapoff.c
misc: use libmnt_cache reference counting
[thirdparty/util-linux.git] / sys-utils / swapoff.c
index 0bd85ac9c70d01a47f748577886133e87c6650d5..182ce9592bb6e5611ffa6595886c96f0fd52e2e5 100644 (file)
@@ -190,7 +190,7 @@ int main(int argc, char *argv[])
                status |= swapoff_all();
 
        free_tables();
-       mnt_free_cache(mntcache);
+       mnt_unref_cache(mntcache);
 
        return status;
 }