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

    r1021 r1039  
    4444#include "pathutil.h"
    4545#include "fm3dll.h"
     46#include "fortify.h"
    4647
    4748static PSZ pszSrcFile = __FILE__;
     
    599600                      EXEC_FRAME, &ex);
    600601      if (ret != 1) {
    601         xfree(commandline, pszSrcFile, __LINE__);
     602        free(commandline);
    602603        return (ret == 0) ? -1 : -2;
    603604      }
     
    609610                   (*ex.environment) ? ex.environment : NULL,
    610611                   "%s", commandline);
    611     xfree(commandline, pszSrcFile, __LINE__);
     612    free(commandline);
    612613    return ret;
    613614  }
     
    13051306              strcpy(executable, GetCmdSpec(FALSE));
    13061307            }
    1307             xfree(temp, pszSrcFile, __LINE__);
     1308            free(temp);
    13081309          }
    13091310        }
     
    13191320        pgd.swpInitial.hwndInsertBehind = HWND_TOP;
    13201321        happ = WinStartApp(hwndNotify, &pgd, NULL, NULL, ulOptions);
    1321         xfree(parameters, pszSrcFile, __LINE__);
     1322        free(parameters);
    13221323      }
    13231324    }
    1324     xfree(executable, pszSrcFile, __LINE__);
     1325    free(executable);
    13251326  }
    13261327  return happ;
Note: See TracChangeset for help on using the changeset viewer.