summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index ce7b04cdf8..e15076072e 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -1718,7 +1718,8 @@ static PHP_FUNCTION(preg_quote)
/* Reallocate string and return it */
//??? RETVAL_STRINGL(erealloc(out_str, q - out_str + 1), q - out_str, 0);
- RETVAL_STRINGL(erealloc(out_str, q - out_str + 1), q - out_str);
+ RETVAL_STRINGL(out_str, q - out_str);
+ efree(out_str);
}
/* }}} */