Merge "liblog: fix a memory leak in __android_log_pmsg_file_write()" am: a8629e8e15
am: 161953f49c
Change-Id: I40f2c5f37e681bb6c2df3e985a9f9d6841df9178
This commit is contained in:
commit
9948979130
1 changed files with 1 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ LIBLOG_ABI_PRIVATE ssize_t __android_log_pmsg_file_write(
|
|||
__android_log_unlock();
|
||||
} else if (pmsgOpen() < 0) {
|
||||
__android_log_unlock();
|
||||
free(cp);
|
||||
return -EBADF;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue