diff options
author | Denis Vlasenko | 2006-12-17 00:33:29 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-17 00:33:29 +0000 |
commit | f7583d89b07f8dd4510d5383d9ce17ac4f8e699f (patch) | |
tree | 14e80ca0d88626a51d25bac4a15d10d4fad52d01 | |
parent | 9f739445cd3deddd0343c3a8d5a981ede26bef30 (diff) | |
download | busybox-f7583d89b07f8dd4510d5383d9ce17ac4f8e699f.zip busybox-f7583d89b07f8dd4510d5383d9ce17ac4f8e699f.tar.gz |
patch: fix double-free (bug 1120)
-rw-r--r-- | editors/patch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/patch.c b/editors/patch.c index 8e885d0..d13b06a 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); |