diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 18:06:53 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:16:31 +0200 |
commit | 8488c34fc607353be97e0ebadca3fec9f6373b6d (patch) | |
tree | abff9ab7c670d1aa1106a583d6fda3410cb051f6 /ext/imap/tests | |
parent | 73e43b6e19720112f0d10bd988d840e7537055a4 (diff) | |
download | php-git-8488c34fc607353be97e0ebadca3fec9f6373b6d.tar.gz |
Fix #80226: imap_sort() leaks sortpgm memory
We need to free what we have allocated.
Closes GH-6327.
Diffstat (limited to 'ext/imap/tests')
-rw-r--r-- | ext/imap/tests/bug80226.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/imap/tests/bug80226.phpt b/ext/imap/tests/bug80226.phpt new file mode 100644 index 0000000000..95ec235178 --- /dev/null +++ b/ext/imap/tests/bug80226.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #80226 (imap_sort() leaks sortpgm memory) +--SKIPIF-- +<?php +require_once(__DIR__.'/skipif.inc'); +?> +--FILE-- +<?php +require_once(__DIR__.'/imap_include.inc'); +$stream = imap_open($default_mailbox, $username, $password); +imap_sort($stream, SORTFROM, 0); +?> +--EXPECT-- |