Changeset 1038 for trunk/dll/grep.c
- Timestamp:
- Jul 4, 2008, 10:33:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r1032 r1038 276 276 } 277 277 278 # ifdef FORTIFY 279 Fortify_EnterScope(); 280 # endif 278 281 grep = *(GREP *)arg; 279 282 *grep.stopflag = 0; // reset thread-killing flag … … 288 291 WinCancelShutdown(ghmq, TRUE); 289 292 IncrThreadUsage(); 290 # ifdef FORTIFY291 Fortify_EnterScope();292 # endif293 293 // DosSleep(100); //05 Aug 07 GKY 128 // 07 Feb 08 SHL 294 294 // hwndStatus does not exist for applet … … 412 412 FreeDupes(&grep); 413 413 if (grep.numlines && grep.matched) { 414 # ifdef FORTIFY415 xfree(grep.matched, pszSrcFile, __LINE__);416 # else417 414 free(grep.matched); 418 # endif419 415 } 420 416 // 07 Feb 08 SHL fixme to free grep here when not static … … 663 659 if (grep->insertffb) { 664 660 for (x = 0; grep->insertffb[x]; x++) { 665 # ifdef FORTIFY666 xfree(grep->insertffb[x], pszSrcFile, __LINE__);667 # else668 661 free(grep->insertffb[x]); 669 #endif670 662 } 671 663 xfree(grep->insertffb, pszSrcFile, __LINE__); … … 673 665 if (grep->dir) { 674 666 for (x = 0; grep->dir[x]; x++) { 675 # ifdef FORTIFY676 xfree(grep->dir[x], pszSrcFile, __LINE__);677 # else678 667 free(grep->dir[x]); 679 # endif680 668 } 681 669 xfree(grep->dir, pszSrcFile, __LINE__); … … 1163 1151 next = i->next; 1164 1152 if (i->name) { 1165 # ifdef FORTIFY1166 xfree(i->name, pszSrcFile, __LINE__);1167 # else1168 1153 free(i->name); 1169 # endif 1170 } 1171 # ifdef FORTIFY 1172 xfree(i, pszSrcFile, __LINE__); 1173 # else 1154 } 1174 1155 free(i); 1175 # endif1176 1156 i = next; 1177 1157 }
Note:
See TracChangeset
for help on using the changeset viewer.