diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:17:42 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:17:57 +0200 |
commit | 12fc8f66e7756a46b816b71de83f856e7ba018ae (patch) | |
tree | 9f75eb8bb8c4a324965762cc1c4ca03eabcfb53a /ext/imap/php_imap.c | |
parent | 74cf2eb83fc664cbad2d619fd2662bee770d8f81 (diff) | |
parent | 8488c34fc607353be97e0ebadca3fec9f6373b6d (diff) | |
download | php-git-12fc8f66e7756a46b816b71de83f856e7ba018ae.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #80226: imap_sort() leaks sortpgm memory
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index e6775ac811..8c74c8b29a 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3201,6 +3201,7 @@ PHP_FUNCTION(imap_sort) slst = mail_sort(imap_le_struct->imap_stream, (argc == 6 ? ZSTR_VAL(charset) : NIL), spg, mypgm, (argc >= 4 ? flags : NIL)); + mail_free_sortpgm(&mypgm); if (spg && !(flags & SE_FREE)) { mail_free_searchpgm(&spg); } |