Fix memory leak on error

Fixes #4636 <https://github.com/Genymobile/scrcpy/issues/4636>
pull/4469/merge
Romain Vimont 4 months ago
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…
Cancel
Save