Attempt at fixing ByteBuf leaks