summaryrefslogtreecommitdiff
path: root/docs/ref/msg/nng_msg_free.adoc
blob: 84b18db8bcd925db0a42ea4b9cb42735d0e45929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## 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_ entirely.

### See Also

xref:nng_msg_alloc.adoc[nng_msg_alloc],
xref:nng_msg_realloc.adoc[nng_msg_realloc]