diff --git a/test/objcopy.c b/test/objcopy.c index 5fdbdbac63..21967941b9 100755 --- a/test/objcopy.c +++ b/test/objcopy.c @@ -273,7 +273,7 @@ error: H5Sclose(sid_ref); H5Dclose(did1); H5Dclose(did2); - H5Pclose(aid); + H5Aclose(aid); } H5E_END_TRY; return(-1);