From d658091710407ba924e5d32334a85bb495ae68f7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 Feb 2018 14:48:26 +0100 Subject: column: fix memory leak [coverity scan] Signed-off-by: Karel Zak --- text-utils/column.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'text-utils') 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) -- cgit v1.2.3-55-g7522