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/php_imap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index db144b0d49..4acdc01338 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2305,6 +2305,7 @@ PHP_FUNCTION(imap_subscribe) } else { RETURN_FALSE; } + mail_free_address(&addr); } /* }}} */ -- cgit v1.2.1