Free bucket after image insert.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Jan 2015 19:28:07 +0000 (20:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Jan 2015 19:28:27 +0000 (20:28 +0100)
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java

index 7cb8a9a..e3a215a 100644 (file)
@@ -168,6 +168,8 @@ public class FreenetInterface {
                        insertToken.setClientPutter(clientPutter);
                } catch (InsertException ie1) {
                        throw new SoneInsertException("Could not start image insert.", ie1);
+               } finally {
+                       bucket.free();
                }
        }