Commit Graph

93 Commits

Author SHA1 Message Date
Jonathan Beck bb496ff039 remove duplicate free 2008-08-21 19:48:20 +02:00
Jonathan Beck 842db4ebce fixes duplicates free 2008-08-21 19:38:33 +02:00
JonathanBeck e87e41bb24 arrays of string are now NULL terminated, update for loop end condition.
free these arrays when needed.
2008-08-21 19:15:38 +02:00
Jonathan Beck efe860d7c6 close usb device before reopening it. 2008-08-21 19:15:38 +02:00
Jonathan Beck d5e52dbdfd fix AFC memory leak and errors (from iphoneclient valgrind analysis). 2008-08-21 19:13:35 +02:00
Jonathan Beck 89f0fd84b2 fix ssl_session memory leak. 2008-08-21 19:13:35 +02:00
Jonathan Beck ef6206f515 use NULL at end of dictionary values (fixes a memory leak). 2008-08-21 19:13:35 +02:00
Jonathan Beck ab38ab2ec7 fixes config dir mode. 2008-08-21 19:13:35 +02:00
Jonathan Beck 3f37575f65 fix linking of libiphone-initconf. 2008-08-21 19:11:16 +02:00
Jonathan Beck b2ee9d8b0c Merge master into fixes. 2008-08-21 19:10:17 +02:00
Christophe Fergeau ae11cc812e Don't leak "response" in mux_connect 2008-08-21 19:01:35 +02:00
Jonathan Beck f526a360da free file after requesting info 2008-08-21 19:01:35 +02:00
Christophe Fergeau e9e663d597 Don't leak r_packet in receive_AFC_data in the "false alarm" case 2008-08-21 19:00:31 +02:00
Christophe Fergeau 216c9e8089 g_io_channel_unref must be called after g_io_channel_shutdown 2008-08-21 18:58:17 +02:00
Jonathan Beck cb4f79a28c use gnutls function to free SSL session structure. 2008-08-21 18:58:17 +02:00
Christophe Fergeau 0496edd886 Don't leak "version" in get_iPhone 2008-08-21 18:58:17 +02:00
Christophe Fergeau 877fd5089a Fix leak in dispatch_AFC_packet 2008-08-21 18:51:02 +02:00
Jonathan Beck 09e5d87069 fix missing free in dispatch_AFC_packet 2008-08-21 18:49:51 +02:00
Christophe Fergeau a885ca9dbe Don't leak memory in error cases in ifuse_init 2008-08-21 18:47:04 +02:00
Jonathan Beck e5e5f21cae fix some memory leaks 2008-08-21 18:47:04 +02:00
Jonathan Beck 94eca7874e fixes depth check in format_string (can be 0) 2008-08-21 18:43:02 +02:00
Jonathan Beck 460c091cd4 fixes lockdownd_init so it actually starts SSL session 2008-08-21 18:42:01 +02:00
Matt Colyer aecf8d985e Removed duplicate functions in initconf and fixed build issues. 2008-08-20 09:31:32 -07:00
Matt Colyer c8cf91eec5 Added doxygen to lockdown.c 2008-08-20 09:17:05 -07:00
Matt Colyer 24718e493b Made files owned to the user and group which started iFuse (we don't want to use the groups and users used on the iPhone) 2008-08-19 23:41:25 -07:00
Matt Colyer a55c3e762b Put some very elementary error checking to ensure that initconf has been run. 2008-08-19 09:48:24 -07:00
Matt Colyer bc68ec7c3b Cleaned up the status message in initconf. 2008-08-18 09:06:56 -07:00
Matt Colyer 0a50a87d68 Fixed bogus file permissions on the configuration directory. 2008-08-18 09:06:34 -07:00
Matt Colyer bc6f309b2b Exposed file block information in iFuse. 2008-08-18 08:55:44 -07:00
Matt Colyer 951d5ca00c Removed USB reset, as it wasn't really necesary. 2008-08-18 08:43:00 -07:00
Matt Colyer 8e82524e55 Enhance the usability of initconf, by giving more feedback to the user. 2008-08-17 09:00:10 -07:00
Matt Colyer e8e19884ce Fixes initconf. 2008-08-14 22:35:41 -07:00
Matt Colyer 7ea2be3206 Minor documentation cleanup in plist.c. 2008-08-14 09:27:36 -07:00
Matt Colyer a641dd49bb Fixed documentation in usbmux.c. 2008-08-14 09:27:21 -07:00
Matt Colyer 540aaf87f9 Refactored and documented userpref.c. 2008-08-14 09:26:33 -07:00
Matt Colyer b39a0c05e4 Minor cleanups, refactored and commented iphone.c. 2008-08-13 23:21:04 -07:00
Matt Colyer f281e24cca Fix renaming files, it was missing the second NULL character. 2008-08-13 00:16:56 -07:00
Matt Colyer 5564ba7089 Massive AFC cleanup, started with Zach's documentation. 2008-08-13 00:16:15 -07:00
Matt Colyer 818fcb034e Fixed an error in my assert statements 2008-08-12 23:34:51 -07:00
Matt Colyer 15bb91aaba Reverted bb74e8fd00, as I can no longer connect
to my phone with that patch applied.
2008-08-12 23:34:11 -07:00
Matt Colyer 9fbadfad2a Cleaned up plist.c, added doxygen docs. 2008-08-12 09:32:57 -07:00
Jonathan Beck bb74e8fd00 make ifuse use lockdownd_init so that pairing is done if necessary. 2008-08-12 08:57:04 -07:00
Zach C 8d5c88acc7 Fixed seeking, also connections are no longer added twice.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-12 00:31:56 -07:00
Jonathan Beck 2448b82a18 fix length of known devices 2008-08-12 00:16:47 -07:00
Christophe Fergeau eea922593e Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:39:06 -07:00
Christophe Fergeau 323459826a Add missing functions to afc.h
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:37:49 -07:00
Christophe Fergeau 7d4b4ede54 Mark some functions as static
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:37:26 -07:00
Christophe Fergeau af7d1f5fc4 Remove unwanted free, should fix a memory corruption
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:35:59 -07:00
Christophe Fergeau 1e304d42f0 Fix buffer overflow
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:35:15 -07:00
Christophe Fergeau 1c920f3c8e Add missing g_free
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:34:46 -07:00