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

# nng\_url\_free(3)

free a URL structure

## NAME

nng\_url\_free - free a URL structure

## SYNOPSIS

```
#include <nng/nng.h>
void nng_url_free(nng_url *url);
```

## DESCRIPTION

The `nng_url_free()` function deallocates the *url* entirely, including any of its members.

## RETURN VALUES

None.

## ERRORS

None.

## SEE ALSO

[nng\_url\_clone(3)](/nng_url_clone/3.md), [nng\_url\_parse(3)](/nng_url_parse/3.md), [nng\_url(5)](/nng_url/5.md), [nng(7)](/nng/7.md)
