You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
fix: leak of dir fd in ReZygiskd
This commit fixes the leak of dir fd caused due to not calling "closedir" after dir being used.
This commit is contained in:
@@ -130,6 +130,8 @@ static void load_modules(enum Architecture arch, struct Context *restrict contex
|
|||||||
context->modules[context->len].companion = -1;
|
context->modules[context->len].companion = -1;
|
||||||
context->len++;
|
context->len++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closedir(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void free_modules(struct Context *restrict context) {
|
static void free_modules(struct Context *restrict context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user