[Swift-commit] r6652 - trunk/src/org/griphyn/vdl/karajan/lib/swiftscript

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Tue Jul 16 14:35:54 CDT 2013


Author: hategan
Date: 2013-07-16 14:35:53 -0500 (Tue, 16 Jul 2013)
New Revision: 6652

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java
Log:
close variables after reading (bug 1032)

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java	2013-07-15 20:17:43 UTC (rev 6651)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java	2013-07-16 19:35:53 UTC (rev 6652)
@@ -60,6 +60,7 @@
         src.waitFor(this);
 		if (src.getType().equals(Types.STRING)) {
 			readData(dest, (String) src.getValue());
+			dest.closeDeep();
 		}
 		else {
 			PhysicalFormat pf = src.getMapper().map(src.getPathFromRoot());
@@ -69,6 +70,7 @@
 					throw new ExecutionException("readData2 only supports local files");
 				}
 				readData(dest, af.getPath());
+				dest.closeDeep();
 			}
 			else {
 				throw new ExecutionException("readData2 only supports reading from files");




More information about the Swift-commit mailing list