You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lgfld = malloc(sizeof(gribfield));
Later in the code:
if (istart == -1) {
printf("g2_getfld: Beginning characters GRIB not found.\n");
ierr = 1;
return(ierr);
}
and
if (istart == -1) {
printf("g2_getfld: Beginning characters GRIB not found.\n");
ierr = 1;
return(ierr);
}
and
/* Currently handles only GRIB Edition 2. */
if (ver != 2) {
printf("g2_getfld: can only decode GRIB edition 2.\n");
ierr = 2;
return(ierr);
}
and there are some other returns for error conditions. Note that they are not freeing the memory allocated in lgfld. There are (commented out) tests for this in tst_g2_addfield.c.
The text was updated successfully, but these errors were encountered:
In g2_getfld() we have:
lgfld = malloc(sizeof(gribfield));
Later in the code:
and
and
and there are some other returns for error conditions. Note that they are not freeing the memory allocated in lgfld. There are (commented out) tests for this in tst_g2_addfield.c.
The text was updated successfully, but these errors were encountered: