Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apache2/msc_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
static apr_status_t msc_pcre_cleanup(msc_regex_t *regex) {
if (regex != NULL) {
if (regex->pe != NULL) {
free(regex->pe);
pcre_free(regex->pe);
regex->pe = NULL;
}
if (regex->re != NULL) {
Expand Down Expand Up @@ -71,7 +71,7 @@ void *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,

/* Setup the pcre_extra record if pcre_study did not already do it */
if (pe == NULL) {
pe = malloc(sizeof(pcre_extra));
pe = pcre_malloc(sizeof(pcre_extra));
if (pe == NULL) {
return NULL;
}
Expand Down