mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parent
b879528e24
commit
7fad7d345a
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ source_file_load(source_t *source, VALUE filepath) {
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
if (!source->size) {
|
if (!source->size) {
|
||||||
|
close(fd);
|
||||||
source->source = "";
|
source->source = "";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue