diff options
author | Nikias Bassen | 2024-03-27 02:49:14 +0100 |
---|---|---|
committer | Nikias Bassen | 2024-03-27 02:49:14 +0100 |
commit | 9649448434ab5c674d2cc11f76e69e6ee5e9dc09 (patch) | |
tree | 338ddba18d7a917649c9085fd9cf47c99cf23209 | |
parent | 49f4ceb1ea45a2096e34c9bd42269132c90dbb48 (diff) | |
download | libimobiledevice-9649448434ab5c674d2cc11f76e69e6ee5e9dc09.tar.gz libimobiledevice-9649448434ab5c674d2cc11f76e69e6ee5e9dc09.tar.bz2 |
tools: Fix memory leak in idevicedevmodectl
Thanks to @Fidetro for reporting the issue.
-rw-r--r-- | tools/idevicedevmodectl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/idevicedevmodectl.c b/tools/idevicedevmodectl.c index 9997cf3..bd1de6a 100644 --- a/tools/idevicedevmodectl.c +++ b/tools/idevicedevmodectl.c @@ -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; } |