mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Fix coverity errors CID 1230781
and 1230782,
This commit is contained in:
parent
421b999a0e
commit
f2e2a2c266
@ -427,7 +427,6 @@ markprefetch(NCDAPCOMMON* nccomm)
|
||||
extern char* ocfqn(OCddsnode);
|
||||
nclog(NCLOGDBG,"prefetchable: %s=%lu",
|
||||
ocfqn(var->ocnode),(unsigned long)nelems);
|
||||
free(ocfqn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ fprintf(stderr,"getvarx: FETCHWHOLE: fetchconstraint: %s\n",dumpconstraint(fetch
|
||||
#endif
|
||||
ncstat = buildcachenode(dapcomm,fetchconstraint,vars,&cachenode,0);
|
||||
fetchconstraint = NULL; /*buildcachenode34 takes control of fetchconstraint.*/
|
||||
if(ncstat != NC_NOERR) {THROWCHK(ncstat); if(varainfo) free(varainfo); goto fail;}
|
||||
if(ncstat != NC_NOERR) {THROWCHK(ncstat); nullfree(varainfo); goto fail;}
|
||||
} break;
|
||||
|
||||
case CACHED: {
|
||||
|
Loading…
Reference in New Issue
Block a user