Changeset 1009 for trunk/dll/menu.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/menu.c

    r985 r1009  
    6868  while (info) {
    6969    next = info->next;
    70     xfree(info->text);
    71     xfree(info);
     70    xfree(info->text, pszSrcFile, __LINE__);
     71    xfree(info, pszSrcFile, __LINE__);
    7272    info = next;
    7373  }
     
    107107          info->text = xstrdup(tokens[2], pszSrcFile, __LINE__);
    108108          if (!info->text)
    109             xfree(info);
     109            xfree(info, pszSrcFile, __LINE__);
    110110          else {
    111111            if (!stricmp(tokens[0], "MENUITEM"))
     
    115115            else {
    116116              /* error! */
    117               xfree(info->text);
    118               xfree(info);
     117              xfree(info->text, pszSrcFile, __LINE__);
     118              xfree(info, pszSrcFile, __LINE__);
    119119              info = NULL;
    120120            }
Note: See TracChangeset for help on using the changeset viewer.