Merge "liblog: fix a memory leak in __android_log_pmsg_file_write()"
am: a8629e8e15
Change-Id: I9eabd9930467bd540dbc603e68c3dcca4ba452df
This commit is contained in:
commit
161953f49c
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