Merge "logd: fix LogStatistics::format freeing wrong pointer"

This commit is contained in:
Greg Hackmann 2014-04-07 23:18:58 +00:00 committed by Gerrit Code Review
commit 9101878dd0

View file

@ -446,7 +446,7 @@ void LogStatistics::format(char **buf,
static const unsigned short spaces_total = 19; static const unsigned short spaces_total = 19;
if (*buf) { if (*buf) {
free(buf); free(*buf);
*buf = NULL; *buf = NULL;
} }