Issue #2334 - only free memory when we actually no longer care about its contents.
Change-Id: I49fc1e514c65065ddb6e834a6aeed41f466341f4 Former-commit-id: ac3d847501e41668f923f2ea40572c3894e8dc79
This commit is contained in:
parent
b002df8a06
commit
706920aed6
3 changed files with 1 additions and 1 deletions
|
@ -395,6 +395,7 @@ g2int g2_getfld(unsigned char *cgrib,g2int ifldnum,g2int unpack,g2int expand,
|
|||
lgfld->numoct_opt=igds[2];
|
||||
lgfld->interp_opt=igds[3];
|
||||
lgfld->igdtnum=igds[4];
|
||||
free(igds);
|
||||
}
|
||||
else {
|
||||
ierr=10;
|
||||
|
|
|
@ -212,6 +212,5 @@ g2int g2_unpack3(unsigned char *cgrib,g2int *iofst,g2int **igds,g2int **igdstmpl
|
|||
*idefnum=0;
|
||||
*ideflist=0; // NULL
|
||||
}
|
||||
free(ligds);
|
||||
return(ierr); // End of Section 3 processing
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue