Merge pull request #2642 from Ansuel/free-pcre

[mod_verto] Fix memory leak by correctly freeing regex
This commit is contained in:
Andrey Volk 2024-12-11 20:53:31 +03:00 committed by GitHub
commit ce1826e538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1893,10 +1893,12 @@ authed:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
"%d request [%s] matched expr [%s]\n", proceed, request->uri, expression);
request->uri = rule->value;
switch_regex_safe_free(re);
break;
}
rule = rule->next;
switch_regex_safe_free(re);
}
}