com php-src: use correct api: ext/pcre/php_pcre.c
| From: | Anatol Belski | Date: | Fri, 20 Mar 2015 16:11:36 +0000 |
| Subject: | com php-src: use correct api: ext/pcre/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85667@lists.php.net to get a copy of this message | ||
Commit: a43a9c91374b3cd9864eea5e7c0b0e2e9dafa2e2
Author: Anatol Belski <ab@php.net> Fri, 20 Mar 2015 09:36:38 +0100
Parents: b88f1d5b9bbdccfbd20dae3483d11055a963ed71
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a43a9c91374b3cd9864eea5e7c0b0e2e9dafa2e2
Log:
use correct api
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 8080823..6836db7 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -91,7 +91,7 @@ static void php_free_pcre_cache(zval *data) /* {{{ */
{
pcre_cache_entry *pce = (pcre_cache_entry *) Z_PTR_P(data);
if (!pce) return;
- pefree(pce->re, 1);
+ pcre_free(pce->re);
if (pce->extra) {
pcre_free_study(pce->extra);
}