Fix coverity errors CID 1230781

and 1230782,
This commit is contained in:
Dennis Heimbigner 2014-08-11 16:12:14 -06:00
parent 421b999a0e
commit f2e2a2c266
3 changed files with 3 additions and 4 deletions

View File

@ -427,7 +427,6 @@ markprefetch(NCDAPCOMMON* nccomm)
extern char* ocfqn(OCddsnode);
nclog(NCLOGDBG,"prefetchable: %s=%lu",
ocfqn(var->ocnode),(unsigned long)nelems);
free(ocfqn);
}
}
}

View File

@ -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: {

View File

@ -1,7 +1,7 @@
# test: ../ncdump/cdl4/ref_const_test.cdl
# test: ../ncdump/cdl4/ref_tst_chardata.cdl
K="-k3"
F="mrd.cdl"
K="-k1"
F="z.cdl"
#B="-B12"
DBG="-d"
#DBG="-D2"