poprouting: fix a resource leak