com php-src: Temporary fix memory leaks: ext/pcre/php_pcre. c

From: Date: Fri, 07 Mar 2014 13:21:29 +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-77679@lists.php.net to get a copy of this message
Commit: 6ad3abcd3e77362395bb886a4531059f459bf89d Author: Dmitry Stogov <dmitry@zend.com> Fri, 7 Mar 2014 17:21:29 +0400 Parents: b671c3a28a6b72e2beb283cfc759c806d8d0bc01 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6ad3abcd3e77362395bb886a4531059f459bf89d 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 8a5b069..1ae46de 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1379,10 +1379,12 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, int is_callable_repl case HASH_KEY_IS_STRING: //??? add_assoc_stringl_ex(return_value, string_key->val, string_key->len, result, result_len, 0); + efree(result); break; case HASH_KEY_IS_LONG: add_index_stringl(return_value, num_key, result, result_len, 0); + efree(result); break; } } else {

« previous php.cvs (#77679) next »