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

View File

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