diff options
author | Jonathan Beck | 2008-08-21 19:38:33 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-21 19:38:33 +0200 |
commit | 842db4ebceb84b3df05f2539bc84e94d77b1768b (patch) | |
tree | 5596e8df66d8d18a243796f56a2b756805df613a | |
parent | e87e41bb24bbda2e87e6c89d2cc5b9a986ccd346 (diff) | |
download | libplist-842db4ebceb84b3df05f2539bc84e94d77b1768b.tar.gz libplist-842db4ebceb84b3df05f2539bc84e94d77b1768b.tar.bz2 |
fixes duplicates free
-rw-r--r-- | src/AFC.c | 1 | ||||
-rw-r--r-- | src/iphone.c | 1 |
2 files changed, 0 insertions, 2 deletions
@@ -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)); |