]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: use TT_FL_FREEDATA for tt table
authorKarel Zak <kzak@redhat.com>
Mon, 10 Jun 2013 09:51:44 +0000 (11:51 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:46:59 +0000 (16:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.c

index 572636a187e24f97b675130f37a4cdf1fe8e29ec..1691df6d0f0bc116539df1fa621380804249c863 100644 (file)
@@ -237,7 +237,7 @@ static int show_table(int tt_flags, int bytes)
        if (!itr)
                err(EXIT_FAILURE, _("failed to initialize libmount iterator"));
 
-       tt = tt_new_table(tt_flags);
+       tt = tt_new_table(tt_flags | TT_FL_FREEDATA);
        if (!tt) {
                warn(_("failed to initialize output table"));
                goto done;