NNG_TLS_CONFIG_FREE(3tls)
β¨ 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
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms