summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
authorKarel Zak2018-02-20 14:48:26 +0100
committerKarel Zak2018-02-20 14:48:26 +0100
commitd658091710407ba924e5d32334a85bb495ae68f7 (patch)
tree1fc0198689bafd26ecd0012b3e2d198da25412ca /text-utils
parentchrt: fix compiler warning [-Wmaybe-uninitialized] (diff)
downloadkernel-qcow2-util-linux-d658091710407ba924e5d32334a85bb495ae68f7.tar.gz
kernel-qcow2-util-linux-d658091710407ba924e5d32334a85bb495ae68f7.tar.xz
kernel-qcow2-util-linux-d658091710407ba924e5d32334a85bb495ae68f7.zip
column: fix memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/column.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/text-utils/column.c b/text-utils/column.c
index 5d8dd8415..89d46d280 100644
--- a/text-utils/column.c
+++ b/text-utils/column.c
@@ -333,6 +333,9 @@ static void reorder_table(struct column_control *ctl)
scols_table_move_column(ctl->tab, last, wanted[i]);
last = wanted[i];
}
+
+ free(wanted);
+ strv_free(order);
}
static void create_tree(struct column_control *ctl)