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

--- Comment #11 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Contrast with:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811591
which has lots of one-liners e.g.
  http://sources.debian.net/src/ifhp/3.5.20-13/src/ifhp.c/#L1348
which is:
                if( tempfd > 0 ) close(tempfd); tempfd = -1;

Another example from this one:
   if( hash ) FREE_OBJ( hash ); hash = 0;

All of these seem to be in the idiom of "clean up FOO if necessary; reset FOO
always".

Reply via email to