mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
Merge pull request #2642 from Ansuel/free-pcre
[mod_verto] Fix memory leak by correctly freeing regex
This commit is contained in:
commit
ce1826e538
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user