summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index e546864..5080146 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -773,6 +773,8 @@ int main(int argc, char* argv[]) {
if (strstr(filesystem, ".extract")) {
// rename <fsname>.extract to <fsname>
rename(filesystem, tmpf);
+ free(filesystem);
+ filesystem = strdup(tmpf);
}
}