Author: toad
Date: 2009-03-07 20:39:58 +0000 (Sat, 07 Mar 2009)
New Revision: 25949
Modified:
branches/db4o/freenet/src/freenet/node/fcp/ClientPut.java
Log:
Fix a File leak, two others I dunno why they aren't obviously leaking
Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientPut.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientPut.java 2009-03-07
20:31:49 UTC (rev 25948)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientPut.java 2009-03-07
20:39:58 UTC (rev 25949)
@@ -533,6 +533,18 @@
container.activate(putter, 1);
putter.removeFrom(container);
putter = null;
+ if(origFilename != null) {
+ container.activate(origFilename, 5);
+ container.delete(origFilename);
+ }
+ if(clientMetadata != null) {
+ container.activate(clientMetadata, 5);
+ clientMetadata.removeFrom(container);
+ }
+ if(targetURI != null && targetURI !=
FreenetURI.EMPTY_CHK_URI) {
+ container.activate(targetURI, 5);
+ targetURI.removeFrom(container);
+ }
}
super.requestWasRemoved(container);
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs