Reduce memory consumption of banana (Closes #1450)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Apr 2011 20:05:36 +0000 (22:05 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Apr 2011 20:05:36 +0000 (22:05 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
banana/mimepart.inc.php

index 577af46..9a4b6ff 100644 (file)
@@ -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)) {