Fix for the sed-append-next-line test
diff --git a/editors/sed.c b/editors/sed.c
index b73d660..00ed208 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1001,6 +1001,11 @@
 						strcat(pattern_space, next_line);
 						next_line = bb_get_chomped_line_from_file(file);
 						linenum++;
+					} else {
+						/* Jump to end of script and exist */
+						deleted = 1;
+						free(next_line);
+						next_line = NULL;
 					}
 					break;
 				case 't':