summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-21 19:38:33 +0200
committerGravatar Jonathan Beck2008-08-21 19:38:33 +0200
commit842db4ebceb84b3df05f2539bc84e94d77b1768b (patch)
tree5596e8df66d8d18a243796f56a2b756805df613a
parente87e41bb24bbda2e87e6c89d2cc5b9a986ccd346 (diff)
downloadlibplist-842db4ebceb84b3df05f2539bc84e94d77b1768b.tar.gz
libplist-842db4ebceb84b3df05f2539bc84e94d77b1768b.tar.bz2
fixes duplicates free
-rw-r--r--src/AFC.c1
-rw-r--r--src/iphone.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 28f4940..3cb9939 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -239,7 +239,6 @@ static int receive_AFC_data(AFClient *client, char **dump_here) {
if(param1 == 0) {
if (debug) fprintf(stderr, "... false alarm, but still\n");
*dump_here = NULL;
- free(r_packet);
return 0;
}
else { if (debug) fprintf(stderr, "Errno %i\n", param1); }
diff --git a/src/iphone.c b/src/iphone.c
index b796180..d8bb9ae 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -96,7 +96,6 @@ iPhone *get_iPhone() {
if (bytes < 20) {
free(version);
free_iPhone(phone);
- free(version);
if (debug) fprintf(stderr, "get_iPhone(): Invalid version message -- header too short.\n");
if (debug && bytes < 0) fprintf(stderr, "get_iPhone(): libusb error message %d: %s (%s)\n",
bytes, usb_strerror(), strerror(-bytes));