From d5c539942e3cb4ad623a3f3f0344fc45af371981 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 26 Aug 2008 03:48:09 -0400
Subject: [PATCH] -removed flush() calls in iil_C_HandlePartBody() to prevent from memory leak (#1485187)

---
 program/lib/imap.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 84d1b36..c10c901 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 @@
 		                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);
             			}
         		}
     		}

--
Gitblit v1.9.1