From adc43110f6b909f4d284cdbb94a9d9719e7d4047 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 29 Mar 2007 10:34:20 +0000 Subject: [PATCH] free memory! --- libraries/import/csv.php | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/import/csv.php b/libraries/import/csv.php index 2f9b368f6..ad5c40673 100644 --- a/libraries/import/csv.php +++ b/libraries/import/csv.php @@ -122,6 +122,7 @@ if ($plugin_param == 'table') { } else { // Append new data to buffer $buffer .= $data; + unset($data); // Do not parse string when we're not at the end and don't have new line inside if (($csv_new_line == 'auto' && strpos($buffer, "\r") === FALSE && strpos($buffer, "\n") === FALSE) || ($csv_new_line != 'auto' && strpos($buffer, $csv_new_line) === FALSE)) {