Changeset 1009 for trunk/dll/misc.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (17 years ago)
Author:
Steven Levine
Message:

Add xfree xstrdup Fortify support
Add MT capable Fortify scope logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r998 r1009  
    229229        }
    230230      }
    231       xfree(s);
     231      xfree(s, pszSrcFile, __LINE__);
    232232    }
    233233    if (releaseme)
     
    733733              psz = pci->pszSubject;
    734734              pci->pszSubject = NullStr;
    735               xfree(psz);
     735              xfree(psz, pszSrcFile, __LINE__);
    736736            }
    737737            else
     
    798798              psz = pci->pszLongName;
    799799              pci->pszLongName = NullStr;
    800               xfree(psz);
     800              xfree(psz, pszSrcFile, __LINE__);
    801801            }
    802802            else
     
    848848                  if (!PostMsg(hwnd,
    849849                               UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    850                     xfree(filename);
     850                    xfree(filename, pszSrcFile, __LINE__);
    851851                }
    852852                if (stricmp(testname, pci->pszFileName)) {
     
    856856                    if (!PostMsg(hwnd,
    857857                                 UM_FIXEDITNAME, MPVOID, MPFROMP(filename)))
    858                       xfree(filename);
     858                      xfree(filename, pszSrcFile, __LINE__);
    859859                  }
    860860                }
     
    10021002    else if (ret != 0)
    10031003      return -1;
    1004     xfree(pszCmdLine);
     1004    xfree(pszCmdLine, pszSrcFile, __LINE__);
    10051005  }
    10061006  return 0;
     
    19951995                                  GetPString(IDS_SUBJ) : GetPString(IDS_NAME));
    19961996    WinSetWindowText(hwnd, s);
    1997     xfree(s);
     1997    xfree(s, pszSrcFile, __LINE__);
    19981998  }
    19991999}
     
    20142014             !(flWindowAttr & CV_TEXT)) ? GetPString(IDS_MINI) : NullStr);
    20152015    WinSetWindowText(hwnd, s);
    2016     xfree(s);
     2016    xfree(s, pszSrcFile, __LINE__);
    20172017  }
    20182018}
     
    20342034      sprintf(s, "F:%s", GetPString(IDS_ALLTEXT));
    20352035    WinSetWindowText(hwnd, s);
    2036     xfree(s);
     2036    xfree(s, pszSrcFile, __LINE__);
    20372037  }
    20382038}
     
    21792179      }
    21802180      numswitches = y;
    2181       xfree(pswb);
     2181      xfree(pswb, pszSrcFile, __LINE__);
    21822182      DosPostEventSem(CompactSem);
    21832183    }
Note: See TracChangeset for help on using the changeset viewer.