libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
Memory Management

Functions for cleaning up objects. More...

Functions

void fetch_promise_free (fetch_promise_t *promise)
 Free a promise object.
 

Detailed Description

Functions for cleaning up objects.

Function Documentation

◆ fetch_promise_free()

void fetch_promise_free ( fetch_promise_t * promise)

Free a promise object.

Parameters
promisePromise to free (can be NULL)

Always call this when done with a promise to prevent memory leaks.

Note
Memory: Frees the promise and associated response (if any)
Threading: Must be called from the same thread that created the promise