Skip to content

Commit

Permalink
NOAA-GFDL#58 removed not needed extra free memory call
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Sal-bey authored and Luis Sal-bey committed Feb 27, 2020
1 parent 98a0c91 commit 3558dbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/make_coupler_mosaic/make_coupler_mosaic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@ int main (int argc, char *argv[])
"land fraction at T-cell centers", "units", "none");
mpp_end_def(fid);
mpp_put_var_value(fid, id_mask, mask);
free(mask);
free(mask);
mpp_close(fid);
}
}
Expand Down Expand Up @@ -3277,7 +3277,7 @@ int main (int argc, char *argv[])
double ocn_frac;
int id_mask, fid, dims[2];
char wav_mask_file[STRING];
double *mask, *mask2;
double *mask;
int ny;

for(nw=0; nw<ntile_wav; nw++) {
Expand Down Expand Up @@ -3307,7 +3307,6 @@ int main (int argc, char *argv[])
mpp_put_var_value(fid, id_mask, mask);
mpp_close(fid);
free(mask);
free(mask2);
}
}
}
Expand Down

0 comments on commit 3558dbd

Please sign in to comment.