summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-08-30 16:46:23 +0000
committerAntony Dovgal <tony2001@php.net>2006-08-30 16:46:23 +0000
commita0a7595bbf0e27e441cb70dc6f1679331fdf4add (patch)
tree50730cd4a94c5658173a7613ebce164aeb05e81d /ext/pcre/php_pcre.c
parenta08e79e900cbc26a6fbd493feaa086278c908ab4 (diff)
downloadphp-git-a0a7595bbf0e27e441cb70dc6f1679331fdf4add.tar.gz
fix leak, add test
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c1
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);