From d5c539942e3cb4ad623a3f3f0344fc45af371981 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 26 Aug 2008 07:48:09 +0000 Subject: -removed flush() calls in iil_C_HandlePartBody() to prevent from memory leak (#1485187) --- program/lib/imap.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program') diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 84d1b36b9..c10c90101 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -62,6 +62,7 @@ - removed hardcoded data size in iil_ReadLine() - added iil_PutLine() wrapper for fputs() - code cleanup and identation fixes + - removed flush() calls in iil_C_HandlePartBody() to prevent from memory leak (#1485187) ********************************************************/ @@ -2402,9 +2403,9 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode) { if ($mode == 1) { $result .= rtrim($line, "\t\r\n\0\x0B") . "\n"; } else if ($mode == 2) { - echo rtrim($line, "\t\r\n\0\x0B") . "\n"; flush(); + echo rtrim($line, "\t\r\n\0\x0B") . "\n"; } else if ($mode == 3) { - echo base64_decode($line); flush(); + echo base64_decode($line); } } } -- cgit v1.2.3