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:
ThePedroo
2025-06-09 14:34:30 -03:00
parent 34643c794f
commit 57f985292e

View File

@@ -130,6 +130,8 @@ static void load_modules(enum Architecture arch, struct Context *restrict contex
context->modules[context->len].companion = -1;
context->len++;
}
closedir(dir);
}
static void free_modules(struct Context *restrict context) {