Skip to content

Commit f1bf4bf

Browse files
committed
Don't leak encoding_str
1 parent 9be31a5 commit f1bf4bf

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
@@ -3243,6 +3243,7 @@ PHP_FUNCTION(mb_convert_encoding)
32433243
} else {
32443244
_from_encodings = estrdup(ZSTR_VAL(encoding_str));
32453245
}
3246+
zend_string_release(encoding_str);
32463247
} ZEND_HASH_FOREACH_END();
32473248

32483249
if (_from_encodings != NULL && !strlen(_from_encodings)) {

0 commit comments

Comments
 (0)