libssh2_free(3)

libssh2_free3

Deallocate libssh2 memory

Usage

#include <libssh2.h>
void
libssh2_free(LIBSSH2_SESSION *session, void *ptr);

Overview

Deallocate memory allocated by earlier call to libssh2 functions. It uses the memory allocation callbacks provided by the application, if any. Otherwise, this will call free().

This function is mostly useful under Windows when libssh2 is linked to one run-time library and the application to another.

Releases

8 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–12
  2. 13–Arch

Availability

Added in libssh2 1.2.8

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.