From: Glenn L McGrath Date: Wed, 24 Sep 2003 10:23:39 +0000 (-0000) Subject: Fix some typo's, remove some extra free statements X-Git-Tag: 1_00_pre4~160 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=761ec20f81354a9fcb7a4098c29322847fc0aa0c;p=oweals%2Fbusybox.git Fix some typo's, remove some extra free statements --- diff --git a/editors/sed.c b/editors/sed.c index 8b98a3182..1c016ac57 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -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