---
title: "gss_release_oid(_:_:)"
framework: GSS
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 5.0+, visionOS 1.0+]
path: "gss/gss_release_oid(_:_:)"
---

# gss_release_oid(_:_:)

Releases the memory associated with an object identifier.

## Declaration

```swift
func gss_release_oid(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ oid: UnsafeMutablePointer<gss_OID?>) -> OM_uint32
```

## Parameters

- `minor_status`: A pointer to the secondary status result that provides additional information in case of failure.
- `oid`: The object identifier to release.

## Mentioned in

Allocating and Releasing Objects

## Return Value

Return Value A status code set to GSS_S_COMPLETE on success. See Function Status for a complete enumeration of status outputs.

## See Also

### Creation and Release

- [gss_create_empty_oid_set(_:_:)](gss/gss_create_empty_oid_set(_:_:).md)
- [gss_add_oid_set_member(_:_:_:)](gss/gss_add_oid_set_member(_:_:_:).md)
- [gss_release_oid_set(_:_:)](gss/gss_release_oid_set(_:_:).md)
