Readline-8.0 patch 1: fix file descriptor leak with zero-length history file
This commit is contained in:
parent
2a17c803f6
commit
8cfb541ad1
|
@ -305,6 +305,7 @@ read_history_range (const char *filename, int from, int to)
|
|||
if (file_size == 0)
|
||||
{
|
||||
free (input);
|
||||
close (file);
|
||||
return 0; /* don't waste time if we don't have to */
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# Do not edit -- exists only for use by patch
|
||||
|
||||
0
|
||||
1
|
||||
|
|
Loading…
Reference in New Issue