Skip to content

Commit

Permalink
Merge pull request #2642 from Ansuel/free-pcre
Browse files Browse the repository at this point in the history
[mod_verto] Fix memory leak by correctly freeing regex
  • Loading branch information
andywolk authored Dec 11, 2024
2 parents e490fe6 + 12b47fe commit ce1826e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mod/endpoints/mod_verto/mod_verto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1893,10 +1893,12 @@ static void http_run(jsock_t *jsock)
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);
}
}

Expand Down

0 comments on commit ce1826e

Please sign in to comment.