[utils/lls] Make the node free function support more flexible.