Fixed bug where log entry potentially pointed to re-used memory.