2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-30 13:58:08 +00:00

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 #define BUFSIZE 65536
char *buf = malloc(BUFSIZE); char *buf = malloc(BUFSIZE);
if (!buf) { if (!buf) {
LOG_OOM();
return false; return false;
} }