diff --git a/ncdump/nccopy.c b/ncdump/nccopy.c index 0d7e6e2b9..4d909772f 100644 --- a/ncdump/nccopy.c +++ b/ncdump/nccopy.c @@ -2273,6 +2273,7 @@ main(int argc, char**argv) if(kvalue->name == NULL) { error("invalid output format: %s", kind_name); } + nullfree(kind_name); } break; case '3': /* output format is classic (netCDF-3) */