mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-20 15:00:46 +00:00
Fix memory leak on error
Fixes #4636 <https://github.com/Genymobile/scrcpy/issues/4636>
This commit is contained in:
parent
7c53a29d72
commit
3333e67452
@ -458,6 +458,7 @@ sc_adb_list_devices(struct sc_intr *intr, unsigned flags,
|
||||
// in the buffer in a single pass
|
||||
LOGW("Result of \"adb devices -l\" does not fit in 64Kb. "
|
||||
"Please report an issue.");
|
||||
free(buf);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user