libssh2_knownhost_free(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 🌈

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 βœ¨πŸ¦‹πŸŒΈ