aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/cut.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index ca2408f97..72a6f2b80 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -101,7 +101,6 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
101 101
102 /* set up a list so we can keep track of what's been printed */ 102 /* set up a list so we can keep track of what's been printed */
103 int linelen = strlen(line); 103 int linelen = strlen(line);
104 char *orig_line = line;
105 unsigned cl_pos = 0; 104 unsigned cl_pos = 0;
106 105
107 /* cut based on chars/bytes XXX: only works when sizeof(char) == byte */ 106 /* cut based on chars/bytes XXX: only works when sizeof(char) == byte */
@@ -216,7 +215,7 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
216 putchar('\n'); 215 putchar('\n');
217 next_line: 216 next_line:
218 linenum++; 217 linenum++;
219 free(orig_line); 218 free(line);
220 } /* while (got line) */ 219 } /* while (got line) */
221#undef opt_REGEX 220#undef opt_REGEX
222} 221}