---
name: "nng_tls_config_free"
section: "3tls"
platform: "linux"
package: "libnng-dev"
version: "1.10.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nng_tls_config_free"
---

# nng\_tls\_config\_free(3tls)

deallocate a TLS configuration object

## 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

The `nng_tls_config_free()` decrements the reference count on the TLS configuration object pointed to by *cfg*, and if the resulting reference count is zero, then deallocates the configuration object.

## RETURN VALUES

None.

## ERRORS

None.

## SEE ALSO

[nng\_tls\_config\_alloc(3tls)](/nng_tls_config_alloc/3tls.md), [nng(7)](/nng/7.md)
