libxml-raku / LibXML-raku

Raku bindings to the libxml2 native library
Artistic License 2.0
11 stars 5 forks source link

Some further memory leaks in dom.c #78

Closed dwarring closed 2 years ago

dwarring commented 2 years ago

There's several functions in dom.c that are returning malloced values: domGetNodeName, domGetXPathKey, domGetASTKey, domGenNsPrefix, xmlNsUniqueKey.

These leaks could be solved in Raku, but in most cases, they return a small discrete set of possible discrete values and are maybe best solved by using xmlDict in the C bindings.

See also #77

dwarring commented 2 years ago

Fixed in LibXML 0.7.8 release