Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

memfree - Free memory area

&pagelevel(4)&pagelevel

Definition

#include <stdlib.h>

void memfree(const void *p, size_t n);

memfree releases n bytes of the memory area to which p points. p must be the result of a
preceding memalloc call.

memfree passes on the release request directly to the appropriate operating system call.
memfree can only be used in conjunction with memalloc. Both functions are mainly suitable
for memory areas with a size of more than 2 Kbytes.

Notes

memfree can only be used to free a memory area requested by memalloc.

The values passed to memfree must match those of the corresponding memalloc call.
Random values will lead to a serious disruption in working memory!

See also

memalloc