mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-31 17:50:26 +08:00
Coverity issue: 1197640
This commit is contained in:
parent
4347623287
commit
1ddaa1d310
@ -1043,7 +1043,10 @@ buildcdftreer(NCDAPCOMMON* nccomm, OCddsnode ocnode, CDFnode* container,
|
||||
CDFnode* subnode;
|
||||
oc_dds_ithfield(nccomm->oc.conn,ocnode,i,&ocsubnode);
|
||||
ncerr = buildcdftreer(nccomm,ocsubnode,cdfnode,tree,&subnode);
|
||||
if(ncerr) return ncerr;
|
||||
if(ncerr) {
|
||||
if(ocname) free(ocname);
|
||||
return ncerr;
|
||||
}
|
||||
nclistpush(cdfnode->subnodes,(void*)subnode);
|
||||
}
|
||||
nullfree(ocname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user