diff options
author | Scott MacVicar <scottmac@php.net> | 2009-06-08 21:52:08 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-06-08 21:52:08 +0000 |
commit | 17dc898a726a6ff25b09e1b919db8912dacb62aa (patch) | |
tree | 2e0f8028f5b5d722283e66616c457c15172f6905 | |
parent | a48b65d6f5fb844a32b7cd46808aeeb86565c20e (diff) | |
download | php-git-17dc898a726a6ff25b09e1b919db8912dacb62aa.tar.gz |
MFH fix bug #44214: crash with preg_replace_callback and global variables
-rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index bcf9c425fa..d8cb0ee3da 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -842,8 +842,8 @@ static int preg_do_repl_func(zval *function, char *subject, int *offsets, char * result_len = offsets[1] - offsets[0]; *result = estrndup(&subject[offsets[0]], result_len); } - zval_dtor(subpats); - FREE_ZVAL(subpats); + + zval_ptr_dtor(&subpats); return result_len; } |