GNOME Bugzilla – Bug 698253
Docs for xmlStrcat() don't say first argument is destroyed
Last modified: 2017-06-20 13:56:54 UTC
Calling xmlStrcat() causes the first argument to be either destroyed or reallocated. In either case, it's not acceptable to free that variable after the call, but this is not mentioned in the documentation. The documentation for xmlStrncat() gives the proper information. As far as I can tell, xmlStrcat() often calls xmlStrncat().
Fixed with the following commit: https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f