diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:22:19 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:22:19 +0200 |
commit | d523de69d71a12e741d273458c8fa5de0406394b (patch) | |
tree | cff57992ad3a72693984f38065185ff177d98d83 /ext/imap/php_imap.c | |
parent | 9c3c67b1bf4e1d2cdd8626064b1979b4173f9734 (diff) | |
parent | 818eb8f6113c53cad40ffb4ba19de30429dfe475 (diff) | |
download | php-git-d523de69d71a12e741d273458c8fa5de0406394b.tar.gz |
Merge branch 'PHP-8.0' into master
* PHP-8.0:
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 fdaae14ee0..dbd53dff5c 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2742,6 +2742,7 @@ PHP_FUNCTION(imap_sort) slst = mail_sort(imap_le_struct->imap_stream, (charset ? ZSTR_VAL(charset) : NIL), spg, mypgm, flags); + mail_free_sortpgm(&mypgm); if (spg && !(flags & SE_FREE)) { mail_free_searchpgm(&spg); } |