Add missing LOG_OOM() on malloc failure
This commit is contained in:
parent
7f2f5950f2
commit
396e4bd925
1 changed files with 1 additions and 0 deletions
|
@ -401,6 +401,7 @@ sc_adb_list_devices(struct sc_intr *intr, unsigned flags,
|
|||
#define BUFSIZE 65536
|
||||
char *buf = malloc(BUFSIZE);
|
||||
if (!buf) {
|
||||
LOG_OOM();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue