summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c
index 7727411..7fa104b 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -913,11 +913,11 @@ int restore_send_filesystem(struct idevicerestore_client_t* client, idevice_t de
}
if (client->filesystem) {
char* path = strdup(client->filesystem);
- char* fsname_base = path_get_basename(path);
+ const char* fsname_base = path_get_basename(path);
char* parent_dir = dirname(path);
ipsw_dummy = ipsw_open(parent_dir);
- free(path);
file = ipsw_file_open(ipsw_dummy, fsname_base);
+ free(path);
} else {
file = ipsw_file_open(client->ipsw, fsname);
}