From 53c99d1963eaba55fd4bfeb1757081d3e2a320b8 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 3 Apr 2011 22:05:36 +0200 Subject: [PATCH] Reduce memory consumption of banana (Closes #1450) Signed-off-by: Florent Bruneau --- banana/mimepart.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/banana/mimepart.inc.php b/banana/mimepart.inc.php index 577af46..9a4b6ff 100644 --- a/banana/mimepart.inc.php +++ b/banana/mimepart.inc.php @@ -156,10 +156,12 @@ class BananaMimePart return; } $content = join("\n", $lines); + unset($lines); $test = trim($content); if (empty($test)) { return; } + unset($test); $content_type = strtolower($this->getHeader('content-type', '/^\s*([^ ;]+?)(;|$)/')); if (empty($content_type)) { -- 2.1.4