Skip to content

Commit 7a7bc8e

Browse files
authored
Don't cleanup doc reference of unlinked node.
This is cause if incorrect free in xmlFreeNode (DICT_FREE(cur->name)).
1 parent 00bb340 commit 7a7bc8e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

xmlua/libxml2.lua

-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,6 @@ end
572572

573573
function libxml2.xmlUnlinkNode(node)
574574
xml2.xmlUnlinkNode(node)
575-
xml2.xmlSetTreeDoc(node, ffi.NULL)
576575
return ffi.gc(node, xml2.xmlFreeNode)
577576
end
578577

0 commit comments

Comments
 (0)