Memory leak with unpacking bufr file in a loop with python (Part 1)
@@ -2215,8 +2215,9 @@ static int create_keys(grib_accessor* a,long onlySubset,long startSubset,long en
/*sectionUp=self->dataKeys;*/
accessor_constant_set_type(gaGroup,GRIB_TYPE_LONG);
accessor_constant_set_dval(gaGroup,groupNumber);
- self->dataKeys->block->first=0;
- self->dataKeys->block->last=0;
+ /* ECC-765: Don't empty out the section_4 keys otherwise there will be memory leaks */
+ /* self->dataKeys->block->first=0; */
+ /* self->dataKeys->block->last=0; */
grib_push_accessor(gaGroup,self->dataKeys->block);
/*indexOfGroupNumber=0;*/
