libssh2\_agent\_free(3) libssh2 libssh2\_agent\_free(3)

# [NAME](#NAME)

libssh2\_agent\_free - free an ssh-agent handle

# [SYNOPSIS](#SYNOPSIS)

```
#include <libssh2.h>
void
libssh2_agent_free(LIBSSH2_AGENT *agent);
```

# [DESCRIPTION](#DESCRIPTION)

Free an ssh-agent handle. This function also frees the internal collection of public keys.

# [RETURN VALUE](#RETURN_VALUE)

None.

# [AVAILABILITY](#AVAILABILITY)

Added in libssh2 1.2

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_agent\_init(3)**](/man/os/libssh2/libssh2_agent_init.3) [**libssh2\_agent\_disconnect(3)**](/man/os/libssh2/libssh2_agent_disconnect.3)

28 May 2009 libssh2

---

Document: libssh2_agent_free(3) from libssh2 1.11.1-r10 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
