Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192839
If the addchild() function finds that the current item is already in the linked list, it overrides the duplicated item with the new one and then free() the new one, but the calling function would still reference the new item that was freed.