1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/docs/libssh2_free.md
2026-06-01 14:38:31 +02:00

696 B

c, SPDX-License-Identifier, Title, Section, Source, See-also
c SPDX-License-Identifier Title Section Source See-also
Copyright (C) The libssh2 project and its contributors. BSD-3-Clause libssh2_free 3 libssh2
libssh2_session_init_ex(3)

NAME

libssh2_free - deallocate libssh2 memory

SYNOPSIS

#include <libssh2.h>

void libssh2_free(LIBSSH2_SESSION *session, void *ptr);

DESCRIPTION

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

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

AVAILABILITY

Added in libssh2 1.2.8