Add missing LOG_OOM() on malloc failure

This commit is contained in:
Romain Vimont 2022-07-19 12:15:05 +02:00
parent 7f2f5950f2
commit 396e4bd925

View file

@ -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;
}