]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: make code more robust [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 28 May 2019 11:25:15 +0000 (13:25 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 May 2019 11:25:15 +0000 (13:25 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c

index 78eeddb8e45ffd7637097827c9d42436b5db1d8a..13b39537e210cacf03223723e568e79540a05fdf 100644 (file)
@@ -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);