[Bug c/80528] reimplement gnulib's "useless-if-before-free" script as a compiler warning
jim at meyering dot net
gcc-bugzilla@gcc.gnu.org
Mon Aug 27 08:18:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80528
jim at meyering dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jim at meyering dot net
--- Comment #4 from jim at meyering dot net ---
Thanks for considering the addition. IME, the vast majority (probably "all I've
seen") of such "useless" if stmts have been attempts to avoid what used to be
UB/segfault on old systems, or simply due to people not realizing that
free(NULL) is now known to be ok on all reasonable portability targets.
More information about the Gcc-bugs
mailing list