Changeset 1029 for trunk/dll/grep.c
- Timestamp:
- Jun 23, 2008, 3:30:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r1017 r1029 288 288 WinCancelShutdown(ghmq, TRUE); 289 289 IncrThreadUsage(); 290 # ifdef FORTIFY 291 Fortify_EnterScope(); 292 # endif 290 293 // DosSleep(100); //05 Aug 07 GKY 128 // 07 Feb 08 SHL 291 294 // hwndStatus does not exist for applet … … 411 414 free(grep.matched); 412 415 // 07 Feb 08 SHL fixme to free grep here when not static 416 # ifdef FORTIFY 417 Fortify_LeaveScope(); 418 # endif 413 419 DosPostEventSem(CompactSem); 414 420 } … … 610 616 DosFindClose(findHandle); 611 617 xfree(pffbArray, pszSrcFile, __LINE__); 618 # ifdef FORTIFY 619 Fortify_LeaveScope(); 620 # endif 612 621 return 1; 613 622 } … … 636 645 637 646 xfree(pffbArray, pszSrcFile, __LINE__); 647 # ifdef FORTIFY 648 Fortify_LeaveScope(); 649 # endif 638 650 return 0; 639 651 } … … 658 670 grep->toinsert = 0L; 659 671 grep->insertedbytes = 0L; 672 # ifdef FORTIFY 673 Fortify_LeaveScope(); 674 # endif 660 675 } 661 676 } … … 765 780 if (!grep->dir) { 766 781 xfree(grep->insertffb, pszSrcFile, __LINE__); 782 # ifdef FORTIFY 783 Fortify_LeaveScope(); 784 # endif 767 785 return FALSE; 768 786 } … … 777 795 grep->dir[grep->toinsert] = xstrdup(szDirectory, pszSrcFile, __LINE__); 778 796 if (!grep->dir) { 779 xfree(grep->insertffb[grep->toinsert], pszSrcFile, __LINE__); 797 xfree(grep->insertffb[grep->toinsert], pszSrcFile, __LINE__); 798 # ifdef FORTIFY 799 Fortify_LeaveScope(); 800 # endif 780 801 return FALSE; 781 802 } … … 995 1016 } 996 1017 xfree(input, pszSrcFile, __LINE__); 1018 # ifdef FORTIFY 1019 Fortify_LeaveScope(); 1020 # endif 997 1021 // DosSleep(1); // 07 Feb 08 SHL 998 1022 } … … 1109 1133 } 1110 1134 xfree(buffer, pszSrcFile, __LINE__); 1135 # ifdef FORTIFY 1136 Fortify_LeaveScope(); 1137 # endif 1111 1138 } 1112 1139 return CRC; … … 1129 1156 xfree(grep->dupesizes, pszSrcFile, __LINE__); 1130 1157 grep->dupesizes = grep->dupenames = NULL; 1158 # ifdef FORTIFY 1159 Fortify_LeaveScope(); 1160 # endif 1131 1161 } 1132 1162 … … 1478 1508 xfree(grep->dupesizes, pszSrcFile, __LINE__); 1479 1509 grep->dupesizes = NULL; 1510 # ifdef FORTIFY 1511 Fortify_LeaveScope(); 1512 # endif 1480 1513 1481 1514 InitITimer(pitdSleep, 0); // Reset rate estimator … … 1592 1625 if (!info->name) { 1593 1626 xfree(info, pszSrcFile, __LINE__); 1627 # ifdef FORTIFY 1628 Fortify_LeaveScope(); 1629 # endif 1594 1630 return FALSE; 1595 1631 }
Note:
See TracChangeset
for help on using the changeset viewer.