Routines (alphabetical) > Routines: H > HDF5 Routines > H5S_CLOSE

# H5S_CLOSE

The H5S_CLOSE procedure releases and terminates access to a dataspace. After this routine is used, the dataspace’s identifier is no longer available.

Failure to release a dataspace using this procedure will result in resource leaks.

## Syntax

H5S_CLOSE, Dataspace_id

## Arguments

### Dataspace_id

An integer representing the dataspace’s identifier to close.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5D_GET_SPACE