diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-06-20 15:04:25 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-06-20 15:04:25 +0400 |
| commit | 6ea228722b2b928eae3b2c30143eda6290fe1a7b (patch) | |
| tree | f75831dc632c2aa85ebdc576d7da782bcef46069 /ext | |
| parent | 629c9d3eda6df5f25701b33033ec13982b1f0d04 (diff) | |
| download | php-git-6ea228722b2b928eae3b2c30143eda6290fe1a7b.tar.gz | |
fixed memory leak
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 08f042bb9e..14271d00a1 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -91,7 +91,9 @@ 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); - if (pce->extra) pefree(pce->extra, 1); + if (pce->extra) { + pcre_free_study(pce->extra); + } #if HAVE_SETLOCALE if ((void*)pce->tables) pefree((void*)pce->tables, 1); pefree(pce->locale, 1); |
