]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
losetup: use TT_FL_FREEDATA for tt table
authorKarel Zak <kzak@redhat.com>
Mon, 10 Jun 2013 09:49:38 +0000 (11:49 +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/losetup.c

index 234a15b0c28423f567719d848e939ce6222c4451..5775d600e5c80e1777e3c86b0b6f0fd88a146352 100644 (file)
@@ -307,7 +307,7 @@ static int make_table(struct loopdev_cxt *lc,
        char *cn_file = NULL;
        int i;
 
-       if (!(tt = tt_new_table(tt_flags)))
+       if (!(tt = tt_new_table(tt_flags | TT_FL_FREEDATA)))
                errx(EXIT_FAILURE, _("failed to initialize output table"));
 
        for (i = 0; i < ncolumns; i++) {