summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-22 11:13:12 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-22 11:15:16 +0100
commitf1bf4bf6eb8bb6e65a0cc28d18d79300f5c14d5f (patch)
tree2d82d379ca9b0cfa411df5ab78bb11bbdbe8d6e8 /ext/mbstring/mbstring.c
parent9be31a582a83c38cdace9d54778398bc9fe0c7a9 (diff)
downloadphp-git-f1bf4bf6eb8bb6e65a0cc28d18d79300f5c14d5f.tar.gz
Don't leak encoding_str
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index d227bb278a..7f4cd451da 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -3243,6 +3243,7 @@ PHP_FUNCTION(mb_convert_encoding)
} else {
_from_encodings = estrdup(ZSTR_VAL(encoding_str));
}
+ zend_string_release(encoding_str);
} ZEND_HASH_FOREACH_END();
if (_from_encodings != NULL && !strlen(_from_encodings)) {