Skip to content

Commit

Permalink
Don't cleanup doc reference of unlinked node.
Browse files Browse the repository at this point in the history
This is cause if incorrect free in xmlFreeNode (DICT_FREE(cur->name)).
  • Loading branch information
ZigzagAK authored Dec 14, 2023
1 parent 00bb340 commit 7a7bc8e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xmlua/libxml2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ end

function libxml2.xmlUnlinkNode(node)
xml2.xmlUnlinkNode(node)
xml2.xmlSetTreeDoc(node, ffi.NULL)
return ffi.gc(node, xml2.xmlFreeNode)
end

Expand Down

0 comments on commit 7a7bc8e

Please sign in to comment.