Index: /trunk/FACT++/src/FitsLoader.cc
===================================================================
--- /trunk/FACT++/src/FitsLoader.cc	(revision 10761)
+++ /trunk/FACT++/src/FitsLoader.cc	(revision 10762)
@@ -167,8 +167,5 @@
     targetFile.precision(fStreamPrecision);
     map<string, CCfits::Column*>::iterator it;
-    stringstream str;
-    str << "Size of fColMap: " << fColMap.size() << " size of offsets: " << offsets.size();
-    Debug(str.str());
-    for (it=fColMap.begin(); it != fColMap.end(); it++)
+   for (it=fColMap.begin(); it != fColMap.end(); it++)
     {
         bool found = false;
@@ -183,9 +180,6 @@
         if (!found)
             continue;
-        str.str("");
-        int offset = offsets[it->second->index()-1];
-        str << "Offset: " << offset;
-        Debug(str.str());
-        const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]);
+       int offset = offsets[it->second->index()-1];
+       const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]);
         unsigned char copyBuffer[30];//max size of a single variable
         for (int width = 0; width<it->second->width(); width++)
@@ -288,7 +282,4 @@
     {
         int width = it->second->width();
-        stringstream str;
-        str << "Width of " << it->first << ": " << it->second->width() << " size: " << size;
-        Message(str.str());
         switch (it->second->type())
         {
@@ -552,5 +543,5 @@
         {
             stringstream str;
-            str << "An error occurred while reading fits row #" << i << " error code: " << status << " " << fTable->rows() << " " << size << " " << sizeof(double);
+            str << "An error occurred while reading fits row #" << i << " error code: " << status;
             Error(str.str());
             str.str("");
@@ -561,4 +552,5 @@
         writeValuesFromFits(offsets, targetFile, fitsBuffer);
     }
+    delete[] fitsBuffer;
     return GetCurrentState();
 }
