iscsi\_sessions\_free(3) API Manual iscsi\_sessions\_free(3)

# [NAME](#NAME)

iscsi\_sessions\_free - Free the memory of 'struct iscsi\_session' pointer array

# [SYNOPSIS](#SYNOPSIS)

**void iscsi\_sessions\_free** **(struct iscsi\_session \*\*ses,** **uint32\_t session\_count);**

# [ARGUMENTS](#ARGUMENTS)

[ses](#ses)

Pointer of 'struct iscsi\_session' pointer array.

[session\_count](#session_count)

uint32\_t, the size of 'struct iscsi\_session' pointer array.

# [DESCRIPTION](#DESCRIPTION)

Free the memory of 'iscsi\_session' pointer array generated by If provided 'ses' pointer is NULL or 'session\_count' is 0, do nothing.

# [RETURN](#RETURN)

void

iscsi\_sessions\_free October 2026

---

Document: iscsi_sessions_free(3) from open-iscsi 2.1.13-r3 (Chainguard OS)
Source: https://github.com/open-iscsi/open-iscsi
