rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.43k stars 493 forks source link

Reduce memory leak from issue 244 #263

Closed michaelschlies closed 4 years ago

michaelschlies commented 4 years ago

fixes #244

It isn't the most pretty to split out, it could possibly even just be assigned with the declaration notation, but this has been running stable for an hour with none of the memory impacts seen by just returning the pointer without assigning it first.