Memory leaks
Building gxml
with meson -Db_sanitize=address _build && ninja -C _build
and running its test-suite shows a huge amount of leaked memory. (Using valac 0.51.90.15-724c3
)
1/2 html FAIL 0.32s
SUMMARY: AddressSanitizer: 2301 byte(s) leaked in 36 allocation(s).
2/2 tests FAIL 7.37s
SUMMARY: AddressSanitizer: 39592976 byte(s) leaked in 622283 allocation(s).
This is likely caused by ignoring the pointer based API of libxml-2.0
which requires manual calls of e.g. delete node
, node.unlink()
, Xml.Parser.cleanup()
.