nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.0.0 of nng, but the latest released version is v1.8.0. see the documentation for v1.8.0 for the most up-to-date information.
nng_free(3)

SYNOPSIS

#include <nng/nng.h>

void nng_free(void *ptr, size_t size);

DESCRIPTION

The nng_free() function deallocates a memory region of size size, that was previously allocated by nng_alloc() or nng_recv() with the NNG_FLAG_ALLOC flag.

It is very important that size match the allocation size used to allocate the memory.
Do not attempt to use this function to deallocate memory obtained by a call to the system malloc() or calloc() functions, or the C++ new operator. Doing so may result in unpredictable behavior, including corruption of application memory.

RETURN VALUES

None.

ERRORS

None.

NNG Reference Manual vv1.0.0 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.