diff --git a/include/activation/record.h b/include/activation/record.h index dbab19b..a02c001 100644 --- a/include/activation/record.h +++ b/include/activation/record.h @@ -33,7 +33,7 @@ plist_t record_build_a12(const device_info_t *dev); /* * record_to_xml -- Serialize an activation record to XML string. * On success, *len is set to the byte length (excluding NUL). - * Returns a malloc'd string the caller must free, or NULL on error. + * Returns a plist-allocated string; caller must free with plist_mem_free(). */ char *record_to_xml(plist_t record, uint32_t *len); diff --git a/include/util/plist_helpers.h b/include/util/plist_helpers.h index 35e0dc2..0ce6cc3 100644 --- a/include/util/plist_helpers.h +++ b/include/util/plist_helpers.h @@ -27,7 +27,7 @@ int plist_dict_get_uint_val(plist_t dict, const char *key, uint64_t *out); /* * Serialize a plist to an XML string. * *len is set to the byte length (excluding NUL). - * Returns a malloc'd string the caller must free, or NULL on error. + * Returns a plist-allocated string; caller must free with plist_mem_free(). */ char *plist_to_xml_string(plist_t plist, uint32_t *len); diff --git a/src/bypass/path_a.c b/src/bypass/path_a.c index 2252102..1a21ff3 100644 --- a/src/bypass/path_a.c +++ b/src/bypass/path_a.c @@ -83,7 +83,7 @@ path_a_activate(device_info_t *dev) log_info("path_a: activation record submitted successfully"); } - free(xml); + plist_mem_free(xml); record_free(record); return ret; }