You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
601 B

=proto
void duk_free_raw(duk_context *ctx, void *ptr);
=summary
<p>Free memory allocated with the allocation function registered to the
context. The operation cannot fail. If <tt>ptr</tt> is <tt>NULL</tt>,
the call is a no-op.</p>
<p><tt>duk_free_raw()</tt> can be used to free memory allocated with either
<tt><a href="#duk_alloc">duk_alloc()</a></tt> or
<tt><a href="#duk_alloc_raw">duk_alloc_raw()</a></tt>
and their reallocation variants.</p>
=example
void *buf = duk_alloc_raw(ctx, 1024);
/* ... */
duk_free_raw(ctx, buf); /* safe even if 'buf' is NULL */
=tags
memory
=seealso
duk_free