patch: fix double-free (bug 1120)

This commit is contained in:
Denis Vlasenko 2006-12-17 00:33:29 +00:00
parent 9f739445cd
commit f7583d89b0

View File

@ -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);