diff options
author | Antony Dovgal <tony2001@php.net> | 2006-08-30 16:46:23 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-08-30 16:46:23 +0000 |
commit | a0a7595bbf0e27e441cb70dc6f1679331fdf4add (patch) | |
tree | 50730cd4a94c5658173a7613ebce164aeb05e81d /ext/pcre/php_pcre.c | |
parent | a08e79e900cbc26a6fbd493feaa086278c908ab4 (diff) | |
download | php-git-a0a7595bbf0e27e441cb70dc6f1679331fdf4add.tar.gz |
fix leak, add test
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 96a28c1da1..5120fb5b49 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1392,6 +1392,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl zval_dtor(&callback_name); *return_value = **subject; zval_copy_ctor(return_value); + INIT_PZVAL(return_value); return; } zval_dtor(&callback_name); |