logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nng_free - free memory

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.

           Important

           It is very important that size match the allocation size used to allocate the memory.

           Important

           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.

Errors

       None.

Name

       nng_free - free memory

Return Values

       None.

See Also

nng_alloc(3), nng_recv(3), nng(7)

                                                   2025-04-20                                        NNG_FREE(3)

Synopsis

           #include <nng/nng.h>

           void nng_free(void *ptr, size_t size);

See Also