Fix LIST memleak when an element contains a "target" attribute.