diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-03-07 17:14:16 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-07 17:14:16 +0400 |
commit | d599d0cecde196d2063d6b6b56d4ffebbaeab238 (patch) | |
tree | 7f732181b676d9a6cc7e44f58f08120d6afc7b58 /ext/pcre/php_pcre.c | |
parent | ab3d1e0d03da10d6ca7fc43e1ebd6b04151213f8 (diff) | |
download | php-git-d599d0cecde196d2063d6b6b56d4ffebbaeab238.tar.gz |
Temporary fix memory leaks
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
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); } /* }}} */ |