Fix leak in link_in()