Invalidate the tag_files.tfd after fclose(3)ing the stram associated with
authortb <tb@openbsd.org>
Thu, 8 Feb 2018 01:36:38 +0000 (01:36 +0000)
committertb <tb@openbsd.org>
Thu, 8 Feb 2018 01:36:38 +0000 (01:36 +0000)
commit3c22eb7bb64b4ebb3da79beaa4c00a535429462a
tree051136436b568899a438e0711cc6ac116a3049f4
parentca0e6eeb8ef84cd2a6d572f971f4ae147d8c76d8
Invalidate the tag_files.tfd after fclose(3)ing the stram associated with
it. In main assert that the tfd was actually invalidated. This avoids
closing an invalid fd.

ok deraadt on earlier version, tweak & ok schwarze
usr.bin/mandoc/main.c
usr.bin/mandoc/tag.c