TS-1475: Fix leaked object in LogBuffer.cc.