jurmous / etcd4j

Java / Netty client for etcd, the highly-available key value store for shared configuration and service discovery.
Apache License 2.0
267 stars 83 forks source link

ByteBuf not released #184

Closed fabianmurariu closed 5 years ago

fabianmurariu commented 5 years ago

in addBasicAuthHeader the ByteBuf is not released after .toString is called causing netty leak detector to complain

09:36:38.655 [main] ERROR io.netty.util.ResourceLeakDetector - LEAK: ByteBuf.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records: 
#1:
    io.netty.buffer.AdvancedLeakAwareByteBuf.toString(AdvancedLeakAwareByteBuf.java:742)