summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}
}