https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118500

--- Comment #3 from Alejandro Colomar <alx at kernel dot org> ---
(In reply to Sam James from comment #2)
> With -O0/-O1, we do get -Wanalyzer-malloc-leak. It gets lost with >= -O2
> unless we use noinine on my_strdup. Not sure if that's another case of
> PR100717 and so on (we have a bunch of bugs for attributes being lost on
> inlining).

That one is a false positive.  It shows up even if I comment the strsep(3)
call.

Reply via email to