]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/swapon.c
misc: use libmnt_cache reference counting
[thirdparty/util-linux.git] / sys-utils / swapon.c
index 4b4b7160cb82d6bd5b5bbefbeecb237e2ecd3c9d..cc9bdbc836413ba00720becaccebdfebc89555a9 100644 (file)
@@ -816,7 +816,7 @@ int main(int argc, char *argv[])
                status |= do_swapon(*argv++, priority, discard, !CANONIC);
 
        free_tables();
-       mnt_free_cache(mntcache);
+       mnt_unref_cache(mntcache);
 
        return status;
 }