summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-05-03 17:24:55 +0200
committerGravatar Nikias Bassen2014-05-03 17:24:55 +0200
commit269fc21990b39cb1bd7a46b223a9d948a07fedd3 (patch)
tree216cb16cf0e2d6efbc196ea1187ec4300ca965e8
parentacd8ea45fe9f74808568d28d1201107e13347e16 (diff)
downloadlibimobiledevice-269fc21990b39cb1bd7a46b223a9d948a07fedd3.tar.gz
libimobiledevice-269fc21990b39cb1bd7a46b223a9d948a07fedd3.tar.bz2
idevicebackup2: Plug small memory leak
-rw-r--r--tools/idevicebackup2.c2
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[])
}
if (cmd == CMD_CHANGEPW || cmd == CMD_CLOUD) {
- backup_directory = strdup(".this_folder_is_not_present_on_purpose");
+ backup_directory = (char*)".this_folder_is_not_present_on_purpose";
} else {
if (backup_directory == NULL) {
printf("No target backup directory specified.\n");