NNG_TLS_CONFIG_FREE(3tls)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ NNG_TLS_CONFIG_FREE(3tls) ✨

okay bestie, welcome to the NNG Reference Manual πŸ’– today we're doing nng_tls_config_free, and honestly? she's a short one, but she MATTERS. no cap.


🌸 NAME 🌸

nng_tls_config_free β€” deallocate a TLS configuration object 🧚


πŸŽ€ SYNOPSIS πŸŽ€

#include <nng/nng.h>
#include <nng/supplemental/tls/tls.h>

void nng_tls_config_free(nng_tls_config *cfg);

πŸ’… DESCRIPTION πŸ’…

so the way that nng_tls_config_free() works is: she takes the TLS configuration object that cfg points at, and she decrements the reference count on it. πŸ“‰

and then? if that reference count lands on zero, she fully deallocates the configuration object. done. gone. slayed. πŸ‘‘

basically it's giving "last one out turns off the lights" energy β€” the object only actually gets freed when the very last reference dips out. periodt.

ngl bestie, reference counting means you do NOT wanna free something somebody else is still holding. she's counting, so she knows. 🫢

πŸ”₯ RETURN VALUES πŸ”₯

None. that's it, that's the whole vibe. she returns nothing because there's nothing to return. πŸ’€


πŸ¦‹ ERRORS πŸ¦‹

None. no error codes, no drama, no unexpected plot twists. iconic behavior fr fr. ✨


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! πŸ’œ this was the NNG Reference Manual, dated 2026-06-30, and honestly nng_tls_config_free ate and left no crumbs. go free your TLS configs responsibly and hydrate!! πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from