Skip to content

Commit

Permalink
tools: Fix memory leak in idevicedevmodectl
Browse files Browse the repository at this point in the history
Thanks to @Fidetro for reporting the issue.
  • Loading branch information
nikias committed Mar 27, 2024
1 parent 49f4ceb commit 9649448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/idevicedevmodectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ int main(int argc, char *argv[])

if ((op == OP_ENABLE || op == OP_ARM) && dev_mode_status) {
if (dev_mode_status) {
idevice_free(device);
printf("DeveloperMode is already enabled.\n");
return 0;
}
Expand Down

0 comments on commit 9649448

Please sign in to comment.