diff options
-rw-r--r-- | tools/ideviceimagemounter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index ad3222a..d56fa0c 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c @@ -104,12 +104,16 @@ static void parse_opts(int argc, char **argv) print_usage(argc, argv); exit(2); } + if (udid) + free(udid); udid = strdup(optarg); break; case 'l': list_mode = 1; break; case 't': + if (imagetype) + free(imagetype); imagetype = strdup(optarg); break; case 'x': |