Visit Mozilla.org

JS free

From MDC

Deallocates a region of memory.

[edit] Syntax

void JS_free(JSContext *cx, void *p);
Name Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
p void * Pointer to the previously allocated memory.

[edit] Description

JS_free deallocates a region of memory allocated a previous call to JS_malloc or JS_realloc. If p is null, JS_free does nothing. Once memory is freed, it should not be used by your application.

Implementation note: Currently JS_free is a wrapper on the standard C free call. Do not depend on this implementation. Future versions of JS_free may be implemented differently.

LXR ID Search for JS_free