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

--- Comment #2 from Alejandro Colomar <[email protected]> ---
(In reply to Alejandro Colomar from comment #1)
> I think the existing -Wunused-result might not be enough because sonmeone
> could write

Oops, hit send by accident.  I'll continue the message.

...someone could write

    p = realloc(p, 0);

as a synonym of

    free(p);
    p = NULL;

TBH, I don't know how frequent that might happen, though.

Reply via email to