Changeset 1038 for trunk/dll/grep.c


Ignore:
Timestamp:
Jul 4, 2008, 10:33:59 PM (17 years ago)
Author:
Gregg Young
Message:

More fortify cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1032 r1038  
    276276  }
    277277
     278# ifdef FORTIFY
     279  Fortify_EnterScope();
     280# endif
    278281  grep = *(GREP *)arg;
    279282  *grep.stopflag = 0;                   // reset thread-killing flag
     
    288291      WinCancelShutdown(ghmq, TRUE);
    289292      IncrThreadUsage();
    290 # ifdef FORTIFY
    291   Fortify_EnterScope();
    292 # endif
    293293      // DosSleep(100); //05 Aug 07 GKY 128     // 07 Feb 08 SHL
    294294      // hwndStatus does not exist for applet
     
    412412    FreeDupes(&grep);
    413413  if (grep.numlines && grep.matched) {
    414 # ifdef FORTIFY
    415     xfree(grep.matched, pszSrcFile, __LINE__);
    416 # else
    417414    free(grep.matched);
    418 # endif
    419415  }
    420416  // 07 Feb 08 SHL fixme to free grep here when not static
     
    663659    if (grep->insertffb) {
    664660      for (x = 0; grep->insertffb[x]; x++) {
    665 # ifdef FORTIFY
    666         xfree(grep->insertffb[x], pszSrcFile, __LINE__);
    667 # else
    668661        free(grep->insertffb[x]);
    669 #endif
    670662      }
    671663      xfree(grep->insertffb, pszSrcFile, __LINE__);
     
    673665    if (grep->dir) {
    674666      for (x = 0; grep->dir[x]; x++) {
    675 # ifdef FORTIFY
    676         xfree(grep->dir[x], pszSrcFile, __LINE__);
    677 # else
    678667        free(grep->dir[x]);
    679 # endif
    680668      }
    681669      xfree(grep->dir, pszSrcFile, __LINE__);
     
    11631151    next = i->next;
    11641152    if (i->name) {
    1165 # ifdef FORTIFY
    1166       xfree(i->name, pszSrcFile, __LINE__);
    1167 # else
    11681153      free(i->name);
    1169 # endif
    1170     }
    1171 # ifdef FORTIFY
    1172     xfree(i, pszSrcFile, __LINE__);
    1173 # else
     1154    }
    11741155    free(i);
    1175 # endif
    11761156    i = next;
    11771157  }
Note: See TracChangeset for help on using the changeset viewer.