Author: toad
Date: 2009-02-18 19:53:09 +0000 (Wed, 18 Feb 2009)
New Revision: 25700

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
Fix a FreenetURI database object leak


Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java       
2009-02-18 19:52:25 UTC (rev 25699)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java       
2009-02-18 19:53:09 UTC (rev 25700)
@@ -352,10 +352,12 @@
                                                Metadata newMeta = 
metadata.grabDocument(name);
                                                metadata.removeFrom(container);
                                                metadata = newMeta;
+                                               FreenetURI oldThisKey = thisKey;
                                                thisKey = 
thisKey.pushMetaString(name);
                                                container.store(this);
                                                container.store(metaStrings);
                                                container.store(thisKey);
+                                               
oldThisKey.removeFrom(container);
                                        }
                                        if(metadata == null)
                                                throw new 
FetchException(FetchException.NOT_IN_ARCHIVE, "can't find "+name);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to