From: Florent Bruneau Date: Sun, 3 Apr 2011 20:05:36 +0000 (+0200) Subject: Reduce memory consumption of banana (Closes #1450) X-Git-Url: http://git.polytechnique.org/?p=banana.git;a=commitdiff_plain;h=53c99d1963eaba55fd4bfeb1757081d3e2a320b8 Reduce memory consumption of banana (Closes #1450) Signed-off-by: Florent Bruneau --- 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)) {