https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436
--- Comment #2 from Branimir Ričko ---
```
I think there *might* be a true positive here for the case where s->cap ==
0x8000, so that s->cap * 2 becomes 0 due to overflow; should my_str_realloc
be checking for s->str being null for the "need
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436
Bug ID: 115436
Summary: False positive with -Wanalyzer-malloc-leak
Product: gcc
Version: 14.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ana