---
name: "iscsi_sessions_free"
section: "3"
platform: "linux"
package: "open-iscsi"
version: "2.1.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/iscsi_sessions_free"
---

# iscsi\_sessions\_free(3)

Free the memory of 'struct iscsi\_session' pointer array

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ses

  Pointer of 'struct iscsi\_session' pointer array.

- session\_count

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

## 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

void
