From: Denis Vlasenko Date: Sun, 17 Dec 2006 00:33:29 +0000 (-0000) Subject: patch: fix double-free (bug 1120) X-Git-Tag: 1_4_0~240 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7583d89b07f8dd4510d5383d9ce17ac4f8e699f;p=oweals%2Fbusybox.git patch: fix double-free (bug 1120) --- diff --git a/editors/patch.c b/editors/patch.c index 8e885d06e..d13b06a83 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -214,6 +214,7 @@ int patch_main(int argc, char **argv) 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);