Changeset 1039 for trunk/dll/pathutil.c


Ignore:
Timestamp:
Jul 6, 2008, 12:16:21 AM (17 years ago)
Author:
Gregg Young
Message:

Removed unnecessary xfrees and included fortify.h where needed; moved several misplaced (x)frees;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/pathutil.c

    r1009 r1039  
    1616***********************************************************************/
    1717
     18#include <stdlib.h>
    1819#include <string.h>
    1920
     
    2728#include "errutil.h"                    // Dos_Error...
    2829#include "strutil.h"                    // GetPString
     30#include "fortify.h"
    2931
    3032static PSZ pszSrcFile = __FILE__;
     
    132134  szArgs = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__);
    133135  if (!szArgs) {
    134     xfree(szCmdLine, pszSrcFile, __LINE__);
     136    free(szCmdLine);
    135137    return pszCmdLine_; //already complained
    136138  }
     
    333335    }
    334336  }
    335   xfree(szArgs, pszSrcFile, __LINE__);
    336   xfree(szCmdLine, pszSrcFile, __LINE__);
     337  free(szArgs);
     338  free(szCmdLine);
    337339  return pszWorkBuf;
    338340}
Note: See TracChangeset for help on using the changeset viewer.