GNU Binutils with patches for OS216
Revision | 8cfb541ad1edfcc21b28eeb767e66b1001b0a84c (tree) |
---|---|
Time | 2020-07-01 06:10:46 |
Author | Chet Ramey <chet.ramey@case...> |
Commiter | Tom Tromey |
Readline-8.0 patch 1: fix file descriptor leak with zero-length history file
@@ -305,6 +305,7 @@ read_history_range (const char *filename, int from, int to) | ||
305 | 305 | if (file_size == 0) |
306 | 306 | { |
307 | 307 | free (input); |
308 | + close (file); | |
308 | 309 | return 0; /* don't waste time if we don't have to */ |
309 | 310 | } |
310 | 311 |
@@ -1,3 +1,3 @@ | ||
1 | 1 | # Do not edit -- exists only for use by patch |
2 | 2 | |
3 | -0 | |
3 | +1 |