[Zodb-checkins] CVS: Zope3/src/zodb - serialize.py:1.18

Jeremy Hylton jeremy@zope.com
Tue, 1 Apr 2003 15:15:28 -0500


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv13359

Modified Files:
	serialize.py 
Log Message:
Must close ObjectWriter() in getDBRoot().


=== Zope3/src/zodb/serialize.py 1.17 => 1.18 ===
--- Zope3/src/zodb/serialize.py:1.17	Thu Mar 20 13:19:03 2003
+++ Zope3/src/zodb/serialize.py	Tue Apr  1 15:15:28 2003
@@ -91,7 +91,9 @@
     writer = ObjectWriter(RootJar())
     from persistence.dict import PersistentDict
     root = PersistentDict()
-    return writer.getState(root)
+    state = writer.getState(root)
+    writer.close()
+    return state
 
 _marker = object()