summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-08-30 16:46:59 +0000
committerAntony Dovgal <tony2001@php.net>2006-08-30 16:46:59 +0000
commitf231b76ba6ab9494d6c3092b8c70888e10b914d4 (patch)
tree85463fa3b5e2aba263158fed65ae7b2d7ed26723 /ext/pcre/php_pcre.c
parent644a79652509234af97e2dc1700bc637955123b3 (diff)
downloadphp-git-f231b76ba6ab9494d6c3092b8c70888e10b914d4.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 2a531e4305..f4ccb14299 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -1272,6 +1272,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl
efree(callback_name);
*return_value = **subject;
zval_copy_ctor(return_value);
+ INIT_PZVAL(return_value);
return;
}
efree(callback_name);