Skip to content

Commit 98bc11b

Browse files
author
Yasuo Ohgaki
committed
Fix memleak.
1 parent 96e59a2 commit 98bc11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,7 @@ MBSTRING_API HashTable *php_mb_convert_encoding_recursive(HashTable *input, cons
33153315
case IS_STRING:
33163316
cval = php_mb_convert_encoding(Z_STRVAL_P(entry), Z_STRLEN_P(entry), _to_encoding, _from_encodings, &cval_len);
33173317
ZVAL_STRINGL(&entry_tmp, cval, cval_len);
3318+
efree(cval);
33183319
break;
33193320
case IS_NULL:
33203321
case IS_TRUE:

0 commit comments

Comments
 (0)