mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 16:29:50 +00:00
patch: fix double-free (bug 1120)
This commit is contained in:
parent
9f739445cd
commit
f7583d89b0
@ -214,6 +214,7 @@ int patch_main(int argc, char **argv)
|
|||||||
bb_error_msg("hunk #%d FAILED at %d", hunk_count, hunk_offset_start);
|
bb_error_msg("hunk #%d FAILED at %d", hunk_count, hunk_offset_start);
|
||||||
hunk_error++;
|
hunk_error++;
|
||||||
free(patch_line);
|
free(patch_line);
|
||||||
|
patch_line = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
free(src_line);
|
free(src_line);
|
||||||
|
Loading…
Reference in New Issue
Block a user