NNG_FREE(3)
β¨ NAME β¨
nng_free β free memory π
okay so this is the NNG_FREE(3) page from the NNG Reference Manual, and it is literally all about giving memory back. no cap.
π οΈ 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. that's the whole vibe bestie. π
Important β it is very important that size match the allocation size used to allocate the memory. fr fr. do not play games with the size. π
Important β do not attempt to use this function to deallocate memory obtained by a call to the systemmalloc()orcalloc()functions, or the C++newoperator. doing so may result in unpredictable behavior, including corruption of application memory. that's not a cute look. that's a π look. do not do it.
π«Ά RETURN VALUES π«Ά
None.
like, it returns nothing. no little gift. no surprise. just none. β¨
π ERRORS π
None.
no errors listed. zero. nada. she's not giving error codes on this page. π¦
π SEE ALSO π
okay bye bestie! this page came from the NNG Reference Manual, page/version NNG_FREE(3), dated 2026-06-30. mwah π
β¨
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms