OSDN Git Service

Fix a memory leak in LogEvent
authorYao Chen <yaochen@google.com>
Sun, 19 Nov 2017 02:56:52 +0000 (18:56 -0800)
committerYao Chen <yaochen@google.com>
Sun, 19 Nov 2017 02:56:52 +0000 (18:56 -0800)
commitae6a83a1cd729376fda3a849714b529f9666f4cb
treee1e81736e5899197076575f5cdcdb8e7ebc23ea2
parentfe945d189a6b0206b95fbb76155835e0743d487a
Fix a memory leak in LogEvent

My previous understanding of the liblog api was wrong. Luckily it
is caught in time. Also added a memory profiling tool in another CL.

Test: statsd_test
      adb shell dumpsys meminfo
      adb shell cmd stats meminfo

Change-Id: I742af2a38e52e35edf0d4c77ccc35ede7019a73b
cmds/statsd/src/logd/LogEvent.cpp