Fix leaked FD for an empty file
This commit is contained in:
parent
010b8a29dc
commit
ddb431c960
Notes:
git
2023-06-22 05:21:42 +00:00
@ -72,6 +72,7 @@ source_file_load(source_t *source, VALUE filepath) {
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
if (!source->size) {
|
||||
close(fd);
|
||||
source->source = "";
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user