logd: fix LogStatistics::format freeing wrong pointer

Fixes a leak and use-after-free if a client passes in an
already-allocated target buffer (currently none do)

Change-Id: Ie20c30bd5ba31e1b6db73885bd9d2ebd7e40dc27
Signed-off-by: Greg Hackmann <ghackmann@google.com>
1 file changed
tree: 0b03a18fb25430e5f6a8ac33e6f44da4906c0c88
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/