diff options
| author | 2014-05-03 17:24:55 +0200 | |
|---|---|---|
| committer | 2014-05-03 17:24:55 +0200 | |
| commit | 269fc21990b39cb1bd7a46b223a9d948a07fedd3 (patch) | |
| tree | 216cb16cf0e2d6efbc196ea1187ec4300ca965e8 /tools/idevicebackup2.c | |
| parent | acd8ea45fe9f74808568d28d1201107e13347e16 (diff) | |
| download | libimobiledevice-269fc21990b39cb1bd7a46b223a9d948a07fedd3.tar.gz libimobiledevice-269fc21990b39cb1bd7a46b223a9d948a07fedd3.tar.bz2 | |
idevicebackup2: Plug small memory leak
Diffstat (limited to 'tools/idevicebackup2.c')
| -rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 5576283..39840e3 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -1503,7 +1503,7 @@ int main(int argc, char *argv[]) | |||
| 1503 | } | 1503 | } |
| 1504 | 1504 | ||
| 1505 | if (cmd == CMD_CHANGEPW || cmd == CMD_CLOUD) { | 1505 | if (cmd == CMD_CHANGEPW || cmd == CMD_CLOUD) { |
| 1506 | backup_directory = strdup(".this_folder_is_not_present_on_purpose"); | 1506 | backup_directory = (char*)".this_folder_is_not_present_on_purpose"; |
| 1507 | } else { | 1507 | } else { |
| 1508 | if (backup_directory == NULL) { | 1508 | if (backup_directory == NULL) { |
| 1509 | printf("No target backup directory specified.\n"); | 1509 | printf("No target backup directory specified.\n"); |
