pfsync_state_import() looks up the tag of a version 1500 state with
pf_tagname2tag(), which takes a reference on the tag and creates it
when no rule uses the name. States do not hold a reference on their
tag, so nothing releases this one: every imported state adds a
reference, and the tag stays allocated after the last rule that uses
it is gone.
Look the tag up without taking a reference, as a state created by a
rule has it. A name that no rule uses is no longer created; nothing
could match it, and the state is imported without a tag.
Fixes: 99475087d63b ("pf: Add pfsync protocol for FreeBSD 15")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")