From 5941b30bb889afcdd7684f9e0ce05ce72bb8256b Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 15 Oct 2020 12:51:10 +0200 Subject: Fix #80239: imap_rfc822_write_address() leaks memory We have to free the address when we're finished with it. --- ext/imap/tests/imap_rfc822_write_address_basic.phpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ext/imap/tests/imap_rfc822_write_address_basic.phpt (limited to 'ext/imap/tests') diff --git a/ext/imap/tests/imap_rfc822_write_address_basic.phpt b/ext/imap/tests/imap_rfc822_write_address_basic.phpt new file mode 100644 index 0000000000..92e988c9c9 --- /dev/null +++ b/ext/imap/tests/imap_rfc822_write_address_basic.phpt @@ -0,0 +1,12 @@ +--TEST-- +imap_rfc822_write_address() : basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECT-- +string(24) "My Name " -- cgit v1.2.1