Created attachment 1815272 [details] c file hitting the issue Description of problem: When creating a linked list within a loop and allocating two objects, after various checks the analyzer things we leak the objects. I tried to reproduce a little different issue, but this is good enough. Version-Release number of selected component (if applicable): gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-2) How reproducible: always Steps to Reproduce: 1. gcc -fanalyzer attachment.c Actual results: see second attachment Expected results: no error Additional info: valgrind also doesn't find any leaks when running application
Created attachment 1815273 [details] gcc output
Filed upstream as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101983
No progress in the upstream so far. Let's track it in PR101983.