Changeset 1039 for trunk/dll/avv.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
  • TabularUnified trunk/dll/avv.c

    r1009 r1039  
    4242#include "fm3dll.h"
    4343#include "pathutil.h"                   // NormalizeCmdLine
     44#include "fortify.h"
    4445
    4546#pragma data_seg(DATA1)
     
    105106      NormalizeCmdLine(pszWorkBuf, szCmdLine);
    106107      pszDest = xstrdup(pszWorkBuf, pszSrcFile, __LINE__);
    107       xfree(pszWorkBuf, pszSrcFile, __LINE__);
     108      free(pszWorkBuf);
    108109    }
    109110    else
    110111      pszDest = xstrdup(szCmdLine, pszSrcFile, __LINE__); // return the unexamined input on failure
    111     xfree(szCmdLine, pszSrcFile, __LINE__);
     112    free(szCmdLine);
    112113  }
    113114  else
Note: See TracChangeset for help on using the changeset viewer.