diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-21 11:27:51 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-09-21 11:27:51 +0200 |
| commit | 4591cb8a07ea17c9bfa824fd02d4d33b3cfa3403 (patch) | |
| tree | 1c4045a48573273649cd14180fae867bdf231ac7 /ext | |
| parent | 2bf2cede8933586bb5be2fd77af650a23fcc936e (diff) | |
| parent | d1feeed7f33bda43f92dd2b5fba9547b4cc3fe33 (diff) | |
| download | php-git-4591cb8a07ea17c9bfa824fd02d4d33b3cfa3403.tar.gz | |
Merge branch 'PHP-7.4' into master
* PHP-7.4:
Fix memory leak in php_imap_mutf7()
Diffstat (limited to 'ext')
| -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 667587ab77..27ff2058c7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2570,7 +2570,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); } } /* }}} */ |
