summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-03-07 17:21:29 +0400
committerDmitry Stogov <dmitry@zend.com>2014-03-07 17:21:29 +0400
commit6ad3abcd3e77362395bb886a4531059f459bf89d (patch)
tree58569156d0cda73d42451b56d0f354c052abde97 /ext/pcre/php_pcre.c
parentb671c3a28a6b72e2beb283cfc759c806d8d0bc01 (diff)
downloadphp-git-6ad3abcd3e77362395bb886a4531059f459bf89d.tar.gz
Temporary fix memory leaks
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 8a5b069ee8..1ae46de022 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 {