diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-21 11:26:41 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-21 11:26:41 +0200 |
commit | d1feeed7f33bda43f92dd2b5fba9547b4cc3fe33 (patch) | |
tree | 0d667d57255cc666476f508f5a58b8fd8b6b23e6 | |
parent | d27dc5c028637edaf4d1511613cc33e7e164bd6e (diff) | |
parent | 730fdc77a74ce4816cfb10181357e3eee92e2d3b (diff) | |
download | php-git-d1feeed7f33bda43f92dd2b5fba9547b4cc3fe33.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix memory leak in php_imap_mutf7()
-rw-r--r-- | ext/imap/php_imap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index b5f12f6eee..e6ea7906f7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3086,7 +3086,8 @@ static void php_imap_mutf7(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */ if (out == NIL) { RETURN_FALSE; } else { - RETURN_STRING((char *)out); + RETVAL_STRING((char *)out); + fs_give((void**) &out); } } /* }}} */ |