diff --git a/.github/workflows/sanitizer.yml b/.github/workflows/sanitizer.yml index d85f2da4a..aab048fc1 100644 --- a/.github/workflows/sanitizer.yml +++ b/.github/workflows/sanitizer.yml @@ -7,8 +7,8 @@ on: jobs: sanitizer: - name: Run address-sanitizer on Ubuntu - runs-on: ubuntu-latest + name: Run address-sanitizer on macOS + runs-on: macos-13 strategy: fail-fast: false diff --git a/src/output.c b/src/output.c index 75dc7e9c7..863126377 100644 --- a/src/output.c +++ b/src/output.c @@ -2041,6 +2041,8 @@ void LogOutputOrder(BODY *body, CONTROL *control, FILES *files, OUTPUT *output, } fprintf(fp, "\n"); free(cCol); + free(cUnit); + free(cTmp); } void LogGridOutput(BODY *body, CONTROL *control, FILES *files, OUTPUT *output, @@ -2174,7 +2176,6 @@ void LogBody(BODY *body, CONTROL *control, FILES *files, MODULE *module, void WriteLog(BODY *body, CONTROL *control, FILES *files, MODULE *module, OPTIONS *options, OUTPUT *output, SYSTEM *system, UPDATE *update, fnUpdateVariable ***fnUpdate, fnWriteOutput fnWrite[], int iEnd) { - char *cTime=NULL; FILE *fp; double dTotTime; @@ -2186,13 +2187,10 @@ void WriteLog(BODY *body, CONTROL *control, FILES *files, MODULE *module, double dDt = fdGetTimeStep(body, control, system, update, fnUpdate); if (iEnd == 0) { - fvFormattedString(&cTime, "Input"); fp = fopen(files->cLog, "w"); } else if (iEnd == 1) { - fvFormattedString(&cTime, "Final"); fp = fopen(files->cLog, "a"); } else if (iEnd == -1) { - fvFormattedString(&cTime, "Initial"); fp = fopen(files->cLog, "w"); } else { fprintf(stderr, "ERROR: Unknown cTime in output.c:WriteLog.\n");