Testing: Clean up memory leaks etc

This commit is contained in:
Shahram Najm 2018-09-03 17:57:28 +01:00
parent 38db6c8f65
commit 63aceccca5
2 changed files with 2 additions and 2 deletions

View File

@ -849,6 +849,6 @@ int main (int argc, char * argv[])
}
}
free(trunc[1].values);
return 0;
}

View File

@ -844,7 +844,7 @@ int main (int argc, char * argv[])
for (igrid = 0; igrid < 3; igrid++)
{
GRIB_CHECK (((h = grib_handle_new_from_samples (NULL, "reduced_gg_ml_grib2")) == NULL), 0);
GRIB_CHECK (((h = grib_handle_new_from_samples (NULL, "regular_ll_pl_grib2")) == NULL), 0);
len = strlen ("lambert_lam");
GRIB_CHECK (grib_set_string (h, "gridType", "lambert_lam", &len), 0);
GRIB_CHECK (grib_set_long (h, "centre", 85), 0);