Close missing fd

Fix #6463
This commit is contained in:
LoveSy 2022-12-25 02:04:49 +08:00 committed by John Wu
parent ea0e3a09ef
commit bdfedea4e0
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ void LegacySARInit::first_stage_prep() {
write(dest, init.buf, init.sz);
fclone_attr(src, dest);
close(dest);
close(src);
}
xmount("/data/init", "/init", nullptr, MS_BIND, nullptr);
}