libssh2_knownhost_free(3)
π libssh2_knownhost_free β free a collection of known hosts π
okay bestie, this is the libssh2 manual page for libssh2_knownhost_free, and it is literally the cleanup queen of the known-hosts world. no cap. π§Ήβ¨
πΈ SYNOPSIS πΈ
#include <libssh2.h>
void
libssh2_knownhost_free(LIBSSH2_KNOWNHOSTS *hosts);
π¦ DESCRIPTION π¦
Free a collection of known hosts. that's it. that's the whole job. she takes your LIBSSH2_KNOWNHOSTS *hosts and she lets it go π«Ά β all the memory that collection was holding onto gets released back, and you can go about your day.
it's giving spring cleaning but for one specific little data structure. she's not nosy, she's not touching anything else, she just handles her business and dips. π
ngl bestie, if you built up a known-hosts collection and never free it, that's a leak, and leaks are not the vibe. call her when you're done. periodt.
β¨ RETURN VALUE β¨
None. nothing. she returns void, because what is there to report? she did the thing. she's not gonna text you about it. π
π AVAILABILITY π
Added in libssh2 1.2 β so she's been holding it down since way back. a true icon, honestly. π
π SEE ALSO π
libssh2_knownhost_init(3)β the one who starts the collection in the first place π£libssh2_knownhost_add(3)β the one who puts hosts in there πlibssh2_knownhost_check(3)β the one who checks if a host is in there π
iykyk, they're a whole friend group and they work best together. π
and that's the page fr fr π written by the libssh2 girlies, dated 28 May 2009, and filed under libssh2_knownhost_free(3). go free your hosts bestie, you got this β¨π¦πΈ
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms