Plenty of memory leaks while tidying html
Attached to this issue is a zip file. The zip file contains a html file taken from the internet. The html file is not tidy. The code in the zip file calls libxml2 to tidy this html up. The tidying up goes well. But it leaks lots and lots of memory.
To see the problem, run the code in the zip file. The code now calls $ leaks on macOS, but can also call $ valgrind on Linux. It shows many leaks.