ECC-616: Fix memory leak

This commit is contained in:
Shahram Najm 2018-04-09 18:01:07 +01:00
parent 790ea505ac
commit e23533ca78
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ static int tableB_override_set_key(grib_handle* h, grib_accessor_bufr_data_array
if (size > 0) {
refVals = grib_iarray_get_array(refValArray);
err=grib_set_long_array(h, "overriddenReferenceValues", refVals, size);
grib_context_free(h->context, refVals);
}
grib_iarray_delete(refValArray);
return err;