summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-01 19:14:38 +0100
committerGravatar Nikias Bassen2013-12-01 19:14:38 +0100
commit55b99099d306724e186f1683933bc599a083973a (patch)
tree64594a1843d1cf349569058bd47e88ff0a0b0395 /src
parent4af79dd3091bd09d3ff4e460e40e25491fb965dd (diff)
downloadidevicerestore-55b99099d306724e186f1683933bc599a083973a.tar.gz
idevicerestore-55b99099d306724e186f1683933bc599a083973a.tar.bz2
remove version.xml if parsing fails
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 70afd77..30ea7f9 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -146,6 +146,7 @@ static int load_version_data(struct idevicerestore_client_t* client)
free(verbuf);
if (!client->version_data) {
+ remove(version_xml);
error("ERROR: Cannot parse plist data from '%s'.\n", version_xml);
return -1;
}