Fixup nc_test4/test_filter_misc.c too
@@ -184,22 +184,22 @@ openfile(void)
}
if(filterid != TEST_ID) {
fprintf(stderr,"open: test id mismatch: %d\n",filterid);
+ free(params);
return NC_EFILTER;
}
if(nparams != NPARAMS) {
size_t i;
- unsigned int inqparams[MAXPARAMS];
fprintf(stderr,"nparams mismatch\n");
for(nerrs=0,i=0;i<nparams;i++) {
- if(inqparams[i] != baseline[i]) {
+ if(params[i] != baseline[i]) {
fprintf(stderr,"open: testparam mismatch: %ld\n",(unsigned long)i);
nerrs++;
}
}
}
- if(nerrs > 0) return NC_EFILTER;
+ free(params);
- if(params) free(params);
+ if(nerrs > 0) return NC_EFILTER;
/* Verify chunking */
if(!verifychunks())
