---
name: "libssh2_exit"
section: "3"
platform: "linux"
package: "libssh2"
version: "1.11.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libssh2_exit"
---

# libssh2\_exit(3)

global library deinitialization

## NAME

libssh2\_exit - global library deinitialization

## SYNOPSIS

```
#include <libssh2.h>
void
libssh2_exit(void);
```

## DESCRIPTION

Exit the libssh2 functions and frees all memory used internal.

## AVAILABILITY

Added in libssh2 1.2.5

## SEE ALSO

**[libssh2\_init(3)](/libssh2_init/3.md)**
