https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100540
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2021-05-11
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this bug.
Confirmed: the analyzer is considering the path where "fp == stdin", and thus
skipping the fclose (and then treating fp as still needing fclose).