[BusyBox-cvs] busybox/editors sed.c,1.149,1.150

Glenn McGrath bug1 at busybox.net
Wed Sep 24 10:23:42 UTC 2003


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv25599

Modified Files:
	sed.c 
Log Message:
Fix some typo's, remove some extra free statements


Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- sed.c	16 Sep 2003 05:25:40 -0000	1.149
+++ sed.c	24 Sep 2003 10:23:39 -0000	1.150
@@ -1010,17 +1010,15 @@
 						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 




More information about the busybox-cvs mailing list