summaryrefslogtreecommitdiffstats
path: root/sys-utils/losetup.c
diff options
context:
space:
mode:
authorKarel Zak2013-06-10 11:49:38 +0200
committerKarel Zak2013-09-16 16:46:59 +0200
commit5c32f352c8eb3499e44583bd6c3e795bfb60deb7 (patch)
tree6dca03962f7ac4421c84efc3a88d77349908654a /sys-utils/losetup.c
parentpartx: use TT_FL_FREEDATA for tt table (diff)
downloadkernel-qcow2-util-linux-5c32f352c8eb3499e44583bd6c3e795bfb60deb7.tar.gz
kernel-qcow2-util-linux-5c32f352c8eb3499e44583bd6c3e795bfb60deb7.tar.xz
kernel-qcow2-util-linux-5c32f352c8eb3499e44583bd6c3e795bfb60deb7.zip
losetup: use TT_FL_FREEDATA for tt table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r--sys-utils/losetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c
index 234a15b0c..5775d600e 100644
--- a/sys-utils/losetup.c
+++ b/sys-utils/losetup.c
@@ -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++) {