|
Summary
Deallocates a region of memory.
|
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
|
|
Description
JS_free deallocates a region of memory allocated by previous calls to JS_malloc and JS_realloc. If p is null, JS_free does nothing. Once memory is freed, it should not be used by your application.
|
Notes
Currently JS_free is a wrapper on the standard C free call. Do not make assumptions based on this underlying reliance. Future versions of JS_free may be implemented in a different manner.
|
See Also
|