summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));