]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: fix memory leak
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 17 Jul 2023 19:07:18 +0000 (21:07 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 17 Jul 2023 19:26:58 +0000 (21:26 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
text-utils/column.c

index a443ab8b1d46f31ad9ef02cf435586d4e2837bd9..ad3d8f3d7f0c416c0b86a3d58d7b1cb7c4c1d768 100644 (file)
@@ -667,6 +667,8 @@ static int read_input(struct column_control *ctl, FILE *fp)
                }
        } while (rc == 0);
 
+       free(buf);
+
        return rc;
 }