Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

FREE

The FREE macro is a platform-independent substitute for the C library routine free. This macro deallocates the space previously allocated by MALLOC, CALLOC, or STRDUP from the request’s memory pool.

Syntax

FREE(void *ptr);

Returns

void

Parameters

void *ptr is a (void *) pointer to a block of memory. If the pointer was not created by MALLOC, CALLOC, or STRDUP, the behavior is undefined.

Example

char *name;name = (char *) MALLOC(256);...FREE(name);

See Also

CALLOC, REALLOC, STRDUP, PERM_MALLOC, PERM_FREE, PERM_REALLOC, PERM_STRDUP