Commit 842db4eb authored by Jonathan Beck's avatar Jonathan Beck

fixes duplicates free

parent e87e41bb
......@@ -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); }
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment