summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
authorKarel Zak2019-05-28 13:25:15 +0200
committerKarel Zak2019-05-28 13:25:15 +0200
commitdd45b90eeff6fa782061beab9717517e00a6f828 (patch)
tree91684ff6bbe68416d7ef7d15094da40c7cbb4f4f /text-utils
parentsetpriv: fix memory leak in local scope [coverity scan] (diff)
downloadkernel-qcow2-util-linux-dd45b90eeff6fa782061beab9717517e00a6f828.tar.gz
kernel-qcow2-util-linux-dd45b90eeff6fa782061beab9717517e00a6f828.tar.xz
kernel-qcow2-util-linux-dd45b90eeff6fa782061beab9717517e00a6f828.zip
column: make code more robust [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 78eeddb8e..13b39537e 100644
--- a/text-utils/column.c
+++ b/text-utils/column.c
@@ -538,6 +538,9 @@ static int read_input(struct column_control *ctl, FILE *fp)
ctl->maxlength = len;
ctl->nents++;
break;
+ default:
+ free(wcs);
+ break;
}
} while (rc == 0);