summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcredemo.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-08-30 20:00:23 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-08-30 20:00:23 +0000
commit45debc52ef4cb0ad308fb6be31b4595270770a2e (patch)
tree44be3bcb13ac8c40ef868487da1d91ba0f0ace0e /ext/pcre/pcrelib/pcredemo.c
parent307b3bcbb4b2e0256a1345c283b533ca8cad53aa (diff)
downloadphp-git-45debc52ef4cb0ad308fb6be31b4595270770a2e.tar.gz
Upgrade PCRE lib to 6.7
Diffstat (limited to 'ext/pcre/pcrelib/pcredemo.c')
-rw-r--r--ext/pcre/pcrelib/pcredemo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/pcre/pcrelib/pcredemo.c b/ext/pcre/pcrelib/pcredemo.c
index 3817203b5f..8b06a9ce63 100644
--- a/ext/pcre/pcrelib/pcredemo.c
+++ b/ext/pcre/pcrelib/pcredemo.c
@@ -117,7 +117,7 @@ if (rc < 0)
*/
default: printf("Matching error %d\n", rc); break;
}
- free(re); /* Release memory used for the compiled pattern */
+ pcre_free(re); /* Release memory used for the compiled pattern */
return 1;
}
@@ -223,8 +223,8 @@ if (namecount <= 0) printf("No named substrings\n"); else
if (!find_all)
{
- free(re); /* Release the memory used for the compiled pattern */
- return 0; /* Finish unless -g was given */
+ pcre_free(re); /* Release the memory used for the compiled pattern */
+ return 0; /* Finish unless -g was given */
}
/* Loop for second and subsequent matches */
@@ -276,7 +276,7 @@ for (;;)
if (rc < 0)
{
printf("Matching error %d\n", rc);
- free(re); /* Release memory used for the compiled pattern */
+ pcre_free(re); /* Release memory used for the compiled pattern */
return 1;
}
@@ -317,7 +317,7 @@ for (;;)
} /* End of loop to find second and subsequent matches */
printf("\n");
-free(re); /* Release memory used for the compiled pattern */
+pcre_free(re); /* Release memory used for the compiled pattern */
return 0;
}