Skip to content

Commit

Permalink
Fix memory leak on error
Browse files Browse the repository at this point in the history
Fixes #4636 <#4636>
  • Loading branch information
rom1v committed Feb 1, 2024
1 parent 7c53a29 commit 3333e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/adb/adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3333e67

Please sign in to comment.