com php-src: Temporary fix memory leaks: ext/pcre/php_pcre. c
| From: | Dmitry Stogov | Date: | Fri, 07 Mar 2014 13:14:16 +0000 |
| Subject: | com php-src: Temporary fix memory leaks: ext/pcre/php_pcre. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77683@lists.php.net to get a copy of this message | ||
Commit: d599d0cecde196d2063d6b6b56d4ffebbaeab238
Author: Dmitry Stogov <dmitry@zend.com> Fri, 7 Mar 2014 17:14:16 +0400
Parents: ab3d1e0d03da10d6ca7fc43e1ebd6b04151213f8
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d599d0cecde196d2063d6b6b56d4ffebbaeab238
Log:
Temporary fix memory leaks
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index ce7b04c..e150760 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);
}
/* }}} */