1
0
mirror of https://github.com/topjohnwu/Magisk.git synced 2025-04-08 06:44:29 +00:00

Close missing fd

Fix 
This commit is contained in:
LoveSy 2022-12-25 02:04:49 +08:00 committed by John Wu
parent ea0e3a09ef
commit bdfedea4e0

@ -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);
} }