OSDN Git Service

Prevent a crash in the memory leak checker (which happened in chk_free())
authorDavid 'Digit' Turner <digit@google.com>
Wed, 8 Jul 2009 12:22:41 +0000 (14:22 +0200)
committerDavid 'Digit' Turner <digit@google.com>
Thu, 9 Jul 2009 22:32:08 +0000 (00:32 +0200)
commitc4eee3765bf9dd81ff055e70ff7daa83a3926d2a
treefca5f9156dba6f7a3278699da9665c138c08f816
parent6ee8f1b0444c0db94931d2cd64427ded8fba38b0
Prevent a crash in the memory leak checker (which happened in chk_free())

Simplify the code a little, removing un-necessary mutex locks/unlocks.
Provide slightly better diagnostic message in case of corruption.
Use snprintf/strlcat instead of sprintf/strcat
libc/bionic/logd_write.c
libc/bionic/malloc_leak.c
libc/private/logd.h