summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-24 15:35:08 -0400
committerGravatar Joshua Hill2010-05-24 15:35:08 -0400
commit92c2879d16148f47ff38f3490f24768bb8eb61f6 (patch)
tree4357e98965ecdc2bbb8ce43ef4c8bfc9f2b17c0a /src/tss.c
parentdb663abb4d7fd66b5433d46d46b7cdeda22fccdc (diff)
downloadidevicerestore-92c2879d16148f47ff38f3490f24768bb8eb61f6.tar.gz
idevicerestore-92c2879d16148f47ff38f3490f24768bb8eb61f6.tar.bz2
Have it sending DeviceTree now and started on ramdisk. Started to clean up a little bit, but not everything yet.
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tss.c b/src/tss.c
index 2b2991d..81b0658 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -109,6 +109,7 @@ plist_t tss_create_request(plist_t buildmanifest, uint64_t ecid) {
plist_dict_insert_item(tss_request, "ApBoardID", plist_new_uint(board_id));
plist_dict_insert_item(tss_request, "ApSecurityDomain", plist_new_uint(security_domain));
plist_dict_insert_item(tss_request, "UniqueBuildID", plist_new_data(unique_build_data, unique_build_size));
+ free(unique_build_data);
// Add all firmware files to TSS request
plist_t manifest_node = plist_dict_get_item(restore_identity_dict, "Manifest");
@@ -135,11 +136,13 @@ plist_t tss_create_request(plist_t buildmanifest, uint64_t ecid) {
plist_dict_insert_item(tss_request, key, tss_entry);
free(key);
}
+ plist_free(manifest_node);
int sz = 0;
char* xml = NULL;
plist_to_xml(tss_request, &xml, &sz);
- printf("%s", xml);
+ debug("%s", xml);
+ free(xml);
return tss_request;
}
@@ -218,7 +221,8 @@ plist_t tss_send_request(plist_t tss_request) {
int sz = 0;
char* xml = NULL;
plist_to_xml(tss_response, &xml, &sz);
- printf("%s", xml);
+ debug("%s", xml);
+ free(xml);
return tss_response;
}