← Commit list

761ec20f8

Glenn L McGrath
Glenn L McGrath
2003-09-24
FAILED Duration: 87s

Subject

Fix some typo's, remove some extra free statements

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/sed.c+2 -4
@@ -1010,17 +1010,15 @@ static void process_file(FILE * file)
next_line = bb_get_chomped_line_from_file(file);
linenum++;
} else {
- /* Jump to end of script and exist */
+ /* Jump to end of script and exit */
deleted = 1;
- free(next_line);
next_line = NULL;
}
break;
case 'N': /* Append the next line to the current line */
if (next_line == NULL) {
- /* Jump to end of script and exist */
+ /* Jump to end of script and exit */
deleted = 1;
- free(next_line);
#ifdef CONFIG_FEATURE_SED_GNU_COMPATABILITY
/* GNU sed will add the newline character
* The GNU sed info page labels this as a bug that wont be fixed