src/tag.c: cleanup