svn commit: trunk/busybox/editors

vda at busybox.net vda at busybox.net
Sat Dec 16 16:33:30 PST 2006


Author: vda
Date: 2006-12-16 16:33:29 -0800 (Sat, 16 Dec 2006)
New Revision: 16978

Log:
patch: fix double-free (bug 1120)


Modified:
   trunk/busybox/editors/patch.c


Changeset:
Modified: trunk/busybox/editors/patch.c
===================================================================
--- trunk/busybox/editors/patch.c	2006-12-16 23:49:13 UTC (rev 16977)
+++ trunk/busybox/editors/patch.c	2006-12-17 00:33:29 UTC (rev 16978)
@@ -214,6 +214,7 @@
 							bb_error_msg("hunk #%d FAILED at %d", hunk_count, hunk_offset_start);
 							hunk_error++;
 							free(patch_line);
+							patch_line = NULL;
 							break;
 						}
 						free(src_line);



More information about the busybox-cvs mailing list