http://code.google.com/p/casacore/source/detail?r=21237
Modified:
/trunk/coordinates/Coordinates/FITSCoordinateUtil.cc
=======================================
--- /trunk/coordinates/Coordinates/FITSCoordinateUtil.cc Tue Oct 18
00:39:05 2011
+++ /trunk/coordinates/Coordinates/FITSCoordinateUtil.cc Thu Apr 5
06:57:58 2012
@@ -836,11 +836,9 @@
ok = False;
}
}
- }
-
// Clean up
-
- wcsfree (&wcsDest);
+ wcsfree (&wcsDest);
+ }
return ok;
}
@@ -898,11 +896,9 @@
ok = False;
}
}
- }
-
// Clean up
-
- wcsfree (&wcsDest);
+ wcsfree (&wcsDest);
+ }
return ok;
}
@@ -959,11 +955,9 @@
os << LogIO::WARN << errMsg << LogIO::POST;
ok = False;
}
- }
-
// Clean up
-
- wcsfree (&wcsDest);
+ wcsfree (&wcsDest);
+ }
return ok;
}
@@ -1181,13 +1175,12 @@
}
}
}
+ // Clean up
+ wcsfree (&wcsDest);
} else {
//os << LogIO::DEBUG1 << "passing empty or nonexistant spectral
Coordinate axis" << LogIO::POST;
os << "passing empty or nonexistant spectral Coordinate axis" <<
LogIO::POST;
}
-
- // Clean up
- wcsfree (&wcsDest);
return ok;
}