Fix a few memory leaks and erroneous logic in nczarr_test/testfilter_misc
Fix a few memory leaks and erroneous logic in nczarr_test/testfilter_misc

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c