Avoid use after free when retrying the -o file
authortb <tb@openbsd.org>
Fri, 20 Sep 2024 12:52:37 +0000 (12:52 +0000)
committertb <tb@openbsd.org>
Fri, 20 Sep 2024 12:52:37 +0000 (12:52 +0000)
commit08948b0a81ee4d92d4c78e1dec98bd71305f42c1
tree68adad3e17a7650aa03714f0c7915843a4bd4fe0
parenta3ee596dd5cad4b36befb02c5e41f75af3999ca7
Avoid use after free when retrying the -o file

This is horrible code and at least file leaks in various paths, but that's
for someone else to fix.

found by & ok jsg
games/fortune/fortune/fortune.c