summaryrefslogtreecommitdiff
path: root/docs/reference/src/msg/nng_msg_free.md
blob: 6a84ee550edd18377abc3802c5c4a36f3b210de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# nng_msg_free

## NAME

nng_msg_free --- free a message

## SYNOPSIS

```c
#include <nng/nng.h>

void nng_msg_free(nng_msg *msg);
```

## DESCRIPTION

The `nng_msg_free()` function deallocates the [message][msg] _msg_ entirely.

## SEE ALSO

[nng_msg_alloc][nng_msg_alloc],
[nng_msg_realloc][nng_msg_realloc]

{{#include ../refs.md}}