Skip to content

Display and control your Android device

Add missing LOG_OOM() on malloc failure

Romain Vimont396e4bd9258c
diff --git a/app/src/adb/adb.c b/app/src/adb/adb.c
index 8b92a2b0..e8775a01 100644
--- a/app/src/adb/adb.c
+++ b/app/src/adb/adb.c
@@ -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;
}