mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-01 15:04:02 +00:00
Free regex resources in plt_hook_commit
Free regex resources for registered and ignored hooks before clearing the lists.
This commit is contained in:
@@ -208,6 +208,12 @@ bool ZygiskContext::plt_hook_commit() {
|
||||
{
|
||||
mutex_guard lock(hook_info_lock);
|
||||
plt_hook_process_regex();
|
||||
for (auto& reg: register_info) {
|
||||
regfree(®.regex);
|
||||
}
|
||||
for (auto& ign: ignore_info) {
|
||||
regfree(&ign.regex);
|
||||
}
|
||||
register_info.clear();
|
||||
ignore_info.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user