[Swift-commit] r6653 - branches/release-0.94/src/org/griphyn/vdl/karajan/lib/swiftscript

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


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

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

Modified: branches/release-0.94/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java
===================================================================
--- branches/release-0.94/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java	2013-07-16 19:35:53 UTC (rev 6652)
+++ branches/release-0.94/src/org/griphyn/vdl/karajan/lib/swiftscript/ReadStructured.java	2013-07-16 19:37:53 UTC (rev 6653)
@@ -66,6 +66,7 @@
         src.waitFor();
 		if (src.getType().equals(Types.STRING)) {
 			readData(dest, (String) src.getValue());
+			dest.closeDeep();
 		}
 		else {
 			PhysicalFormat pf = src.getMapper().map(src.getPathFromRoot());
@@ -75,6 +76,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