Changeset 1009 for trunk/dll/comp.c
- Timestamp:
- May 10, 2008, 9:51:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r1000 r1009 81 81 #include "notebook.h" // External compare/dircompare 82 82 83 #include "fortify.h" // 06 May 08 SHL 84 83 85 typedef struct 84 86 { … … 144 146 DosFindClose(hdir); 145 147 } 146 xfree(mask );148 xfree(mask, pszSrcFile, __LINE__); 147 149 } 148 xfree(pffb );150 xfree(pffb, pszSrcFile, __LINE__); 149 151 } 150 152 } … … 178 180 } 179 181 } 180 xfree(sf );182 xfree(sf, pszSrcFile, __LINE__); 181 183 } 182 184 } … … 485 487 pciD->flags = 0; // Just on one side 486 488 if (pciD->pszSubject != NullStr) { 487 xfree(pciD->pszSubject );489 xfree(pciD->pszSubject, pszSrcFile, __LINE__); 488 490 pciD->pszSubject = NullStr; 489 491 } … … 533 535 pciD->pszLongName = pciS->pszLongName; 534 536 if (pciD->pszSubject != NullStr) { 535 xfree(pciD->pszSubject );537 xfree(pciD->pszSubject, pszSrcFile, __LINE__); 536 538 pciD->pszSubject = NullStr; 537 539 } … … 549 551 550 552 if (pciS->pszFileName != NullStr) { 551 xfree(pciS->pszFileName );553 xfree(pciS->pszFileName, pszSrcFile, __LINE__); 552 554 pciS->pszFileName = NullStr; 553 555 pciS->pszDisplayName = pciS->pszFileName; … … 555 557 } 556 558 if (pciS->pszSubject != NullStr) { 557 xfree(pciS->pszSubject );559 xfree(pciS->pszSubject, pszSrcFile, __LINE__); 558 560 pciS->pszSubject = NullStr; 559 561 } … … 650 652 // Forget status until we regenerate it 651 653 if (pciS->pszSubject != NullStr) { 652 xfree(pciS->pszSubject );654 xfree(pciS->pszSubject, pszSrcFile, __LINE__); 653 655 pciS->pszSubject = NullStr; 654 656 } … … 682 684 WinTerminate(hab); 683 685 } 684 xfree(cmp );686 xfree(cmp, pszSrcFile, __LINE__); 685 687 } 686 688 … … 739 741 WinTerminate(hab); 740 742 } 741 xfree(cmp );743 xfree(cmp, pszSrcFile, __LINE__); 742 744 } 743 745 … … 784 786 pciSa = xmalloc(sizeof(PCNRITEM) * numS, pszSrcFile, __LINE__); 785 787 if (!pciSa) { 786 xfree(pciDa );788 xfree(pciDa, pszSrcFile, __LINE__); 787 789 return; 788 790 } … … 817 819 goto Restart; 818 820 } 819 xfree(pciDa );820 xfree(pciSa );821 xfree(pciDa, pszSrcFile, __LINE__); 822 xfree(pciSa, pszSrcFile, __LINE__); 821 823 Runtime_Error(pszSrcFile, __LINE__, "numD %u != x %lu", numD, x); 822 824 return; … … 844 846 goto Restart; 845 847 } 846 xfree(pciSa );847 xfree(pciDa );848 xfree(pciSa, pszSrcFile, __LINE__); 849 xfree(pciDa, pszSrcFile, __LINE__); 848 850 Runtime_Error(pszSrcFile, __LINE__, "numS (%lu) != x (%lu)", numS, x); 849 851 return; … … 1288 1290 } 1289 1291 1290 xfree(pciSa );1291 xfree(pciDa );1292 xfree(pciSa, pszSrcFile, __LINE__); 1293 xfree(pciDa, pszSrcFile, __LINE__); 1292 1294 1293 1295 if (fUpdateHideButton) { … … 1330 1332 pffbArray = xmalloc(ulBufBytes, pszSrcFile, __LINE__); 1331 1333 if (!pffbArray) { 1332 xfree(maskstr );1334 xfree(maskstr, pszSrcFile, __LINE__); 1333 1335 return; 1334 1336 } … … 1378 1380 // Complain if pathnames exceeds max 1379 1381 DosFindClose(hDir); 1380 xfree(pffbArray );1381 xfree(maskstr );1382 xfree(pffbArray, pszSrcFile, __LINE__); 1383 xfree(maskstr, pszSrcFile, __LINE__); 1382 1384 if (!fDone) { 1383 1385 fDone = TRUE; … … 1412 1414 } 1413 1415 1414 xfree(maskstr );1415 xfree(pffbArray );1416 xfree(maskstr, pszSrcFile, __LINE__); 1417 xfree(pffbArray, pszSrcFile, __LINE__); 1416 1418 1417 1419 // DbgMsg(pszSrcFile, __LINE__, "FillDirList finish %s", str); … … 1444 1446 CNRINFO cnri; 1445 1447 1448 # ifdef FORTIFY 1449 // 10 May 08 SHL fixme to suppress W111 1450 Fortify_EnterScope(); 1451 # endif 1452 1446 1453 if (!cmp) { 1447 1454 Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT); 1455 # ifdef FORTIFY 1456 // 10 May 08 SHL fixme to suppress W111 1457 Fortify_LeaveScope(); 1458 # endif 1448 1459 _endthread(); 1449 1460 } … … 1994 2005 } // if insufficient resources 1995 2006 1996 xfree(filesl ); // Free header - have already freed elements2007 xfree(filesl, pszSrcFile, __LINE__); // Free header - have already freed elements 1997 2008 filesl = NULL; 1998 xfree(filesr );2009 xfree(filesr, pszSrcFile, __LINE__); 1999 2010 filesr = NULL; 2000 2011 … … 2063 2074 WinTerminate(hab); 2064 2075 } 2065 xfree(cmp );2076 xfree(cmp, pszSrcFile, __LINE__); 2066 2077 DosPostEventSem(CompactSem); 2078 2079 # ifdef FORTIFY 2080 // 10 May 08 SHL fixme to suppress W111 2081 Fortify_LeaveScope(); 2082 # endif 2067 2083 2068 2084 // DbgMsg(pszSrcFile, __LINE__, "FillCnrsThread exit"); … … 2624 2640 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2625 2641 WinDismissDlg(hwnd, 0); 2626 xfree(forthread );2642 xfree(forthread, pszSrcFile, __LINE__); 2627 2643 } 2628 2644 else { … … 2904 2920 Runtime_Error(pszSrcFile, __LINE__, 2905 2921 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2906 xfree(sf );2922 xfree(sf, pszSrcFile, __LINE__); 2907 2923 } 2908 2924 } … … 2956 2972 Runtime_Error(pszSrcFile, __LINE__, 2957 2973 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 2958 xfree(forthread );2974 xfree(forthread, pszSrcFile, __LINE__); 2959 2975 } 2960 2976 else { … … 3079 3095 Runtime_Error(pszSrcFile, __LINE__, 3080 3096 GetPString(IDS_COULDNTSTARTTHREADTEXT)); 3081 xfree(forthread );3097 xfree(forthread, pszSrcFile, __LINE__); 3082 3098 } 3083 3099 else { … … 3235 3251 WinSendMsg(cmp->dcd.hwndObject, WM_CLOSE, MPVOID, MPVOID); 3236 3252 } 3237 xfree(cmp );3253 xfree(cmp, pszSrcFile, __LINE__); 3238 3254 } 3239 3255 EmptyCnr(hwndLeft);
Note:
See TracChangeset
for help on using the changeset viewer.