From a0a7595bbf0e27e441cb70dc6f1679331fdf4add Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 30 Aug 2006 16:46:23 +0000 Subject: fix leak, add test --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/pcre/php_pcre.c') 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); -- cgit v1.2.1