---
title: xpc_release
framework: xpc
role: symbol
role_heading: Function
path: xpc/xpc_release
---

# xpc_release

Decrements the reference count of an object.

## Declaration

```occ
extern void xpc_release(xpc_object_t object);
```

## Parameters

- `object`: The object which is to be manipulated.

## Discussion

Discussion The caller must take care to balance retains and releases. When creating or retaining XPC objects, the creator obtains a reference on the object. Thus, it is the caller’s responsibility to call xpc_release on those objects when they are no longer needed.

## See Also

### Object life cycle

- [xpc_retain](xpc/xpc_retain.md)
