Issue #2334 - only free memory when we actually no longer care about its contents.
Change-Id: I49fc1e514c65065ddb6e834a6aeed41f466341f4 Former-commit-id:3794ade854
[formerly0d9fe24f7b
] [formerly5e334a7b0e
] [formerly706920aed6
[formerly5e334a7b0e
[formerly ac3d847501e41668f923f2ea40572c3894e8dc79]]] Former-commit-id:706920aed6
Former-commit-id: e3edd648a9a4f9aa02d5b7f1f450f6103f4ca525 [formerly34f85b41c2
] Former-commit-id:0f702bf515
This commit is contained in:
parent
77b339ea66
commit
c71603ddb3
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