JavaScript-1.5 Reference

JS_free Function

Summary

Deallocates a region of memory.

Syntax

void JS_free(JSContext *cx, void *p);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
pvoid *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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_malloc | JS_realloc ]

This page was generated by APIDOC