Return buffers to pool on network errors or queue overflow (#2609)
Return buffers to pool on network errors or queue overflow (#2609)

Use of sync.Pool requires a .Put for every .Get.
On success, the downstream ThriftProcessor invoked .Put via .DataRecd
but in error cases there seems to be a leak.

Signed-off-by: Carl Henrik Lunde <afbb228c01ef716d910901bf3f59b12538bf9acc@ifi.uio.no>
jpkrohling/jaeger,jaegertracing/jaeger,jaegertracing/jaeger,pavolloffay/jaeger,jpkrohling/jaeger,jaegertracing/jaeger,jpkrohling/jaeger,pavolloffay/jaeger,uber/jaeger,jaegertracing/jaeger,uber/jaeger,jpkrohling/jaeger,pavolloffay/jaeger,pavolloffay/jaeger,pavolloffay/jaeger,jaegertracing/jaeger,uber/jaeger,uber/jaeger,jpkrohling/jaeger