plist_to_xml() returns a string to be freed with xmlFree() rather than free()
-
teuf
libxml2 can be told to use malloc/free/... using xmlMemSetup, but using that wouldn't be so nice if the app wants to use libxml2 on its own.
-
Jonathan Beck
- State changed from new to open
Then the two options left are copying the allocated buffer to a mallocated one (clean but not good for perfromance) or wrap the xmlFree in a new plist_xml_free function (good for performance but adds a new function and break symetry with binary plist).
I don't know which one is the best.
Any advice ? -
Jonathan Beck
- State changed from open to resolved
I went with the buffer copy in the end, so it doesn't change the API.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.