From: Yasuo Ohgaki Date: Tue, 6 Sep 2016 09:34:52 +0000 (+0900) Subject: Fix memleak. X-Git-Tag: php-7.2.0alpha1~1325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98bc11b0cdec974c9353e584d34073fec2fe58dd;p=php Fix memleak. --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 78cb46bb20..361fc1f3e7 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -3315,6 +3315,7 @@ MBSTRING_API HashTable *php_mb_convert_encoding_recursive(HashTable *input, cons case IS_STRING: cval = php_mb_convert_encoding(Z_STRVAL_P(entry), Z_STRLEN_P(entry), _to_encoding, _from_encodings, &cval_len); ZVAL_STRINGL(&entry_tmp, cval, cval_len); + efree(cval); break; case IS_NULL: case IS_TRUE: