Skip to content
Snippets Groups Projects
  • Jim Meyering's avatar
    04695783
    remove useless if-before-free tests · 04695783
    Jim Meyering authored
    Change "if (E) free (E);" to "free (E);" everywhere except in the
    libgo/, intl/, zlib/ and classpath/ directories.
    Also transform equivalent variants like
    "if (E != NULL) free (E);" and allow an extra cast on the
    argument to free.  Otherwise, the tested and freed "E"
    expressions must be identical, modulo white space.
    
    From-SVN: r172785
    04695783
    History
    remove useless if-before-free tests
    Jim Meyering authored
    Change "if (E) free (E);" to "free (E);" everywhere except in the
    libgo/, intl/, zlib/ and classpath/ directories.
    Also transform equivalent variants like
    "if (E != NULL) free (E);" and allow an extra cast on the
    argument to free.  Otherwise, the tested and freed "E"
    expressions must be identical, modulo white space.
    
    From-SVN: r172785