memory leaks: vasprintf in Logger.

allocations are a little bit expensive for logging