diff options
author | Karel Zak | 2018-02-20 14:48:26 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-20 14:48:26 +0100 |
commit | d658091710407ba924e5d32334a85bb495ae68f7 (patch) | |
tree | 1fc0198689bafd26ecd0012b3e2d198da25412ca /text-utils/column.c | |
parent | chrt: fix compiler warning [-Wmaybe-uninitialized] (diff) | |
download | kernel-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/column.c')
-rw-r--r-- | text-utils/column.c | 3 |
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) |