summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-03-07 17:14:16 +0400
committerDmitry Stogov <dmitry@zend.com>2014-03-07 17:14:16 +0400
commitd599d0cecde196d2063d6b6b56d4ffebbaeab238 (patch)
tree7f732181b676d9a6cc7e44f58f08120d6afc7b58 /ext/pcre/php_pcre.c
parentab3d1e0d03da10d6ca7fc43e1ebd6b04151213f8 (diff)
downloadphp-git-d599d0cecde196d2063d6b6b56d4ffebbaeab238.tar.gz
Temporary fix memory leaks
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);
}
/* }}} */