diff options
author | Nuno Lopes <nlopess@php.net> | 2006-09-06 16:30:59 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-09-06 16:30:59 +0000 |
commit | c55eda9f3b0d0b26b5e902d62a6ff9ea07d798dc (patch) | |
tree | e1488690ca8286fce7a01ad84e0dc7ab7fcc1503 /ext/pcre/php_pcre.c | |
parent | b772a83282dd04b587d07eb489c25f13982c53a3 (diff) | |
download | php-git-c55eda9f3b0d0b26b5e902d62a6ff9ea07d798dc.tar.gz |
fix memleak of pcre study data
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f4ccb14299..0bfc13faca 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -90,6 +90,7 @@ static void php_free_pcre_cache(void *data) pcre_cache_entry *pce = (pcre_cache_entry *) data; if (!pce) return; pefree(pce->re, 1); + if (pce->extra) pefree(pce->extra, 1); #if HAVE_SETLOCALE if ((void*)pce->tables) pefree((void*)pce->tables, 1); pefree(pce->locale, 1); |