Created attachment 109306 [details] [review] Correct logging to stop memory leak Sorry about the commit message style -- I am used to a different style. Hope this one is better. This fixes the logging memory leak. I originally thought the _r variants used the ring buffers but after reading the code I realised that, in fact, the variants without the _r used the ring. But I missed one of the calls to correct.