]> granicus.if.org Git - php/commitdiff
Fix memleak.
authorYasuo Ohgaki <yohgaki@php.net>
Tue, 6 Sep 2016 09:34:52 +0000 (18:34 +0900)
committerYasuo Ohgaki <yohgaki@php.net>
Tue, 6 Sep 2016 09:34:52 +0000 (18:34 +0900)
ext/mbstring/mbstring.c

index 78cb46bb200be07dc2745dd695095e0c4128b77e..361fc1f3e787f56e5acebfd5d586b50a61bf52d7 100644 (file)
@@ -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: