src/siri/net/promises.c
/*
 * This function can be used to free promises with data. It assumes
 * data simple can be destroyed with simple calling free().
 */
This function can be used to free promises with data. It assumes
data simple can be destroyed with simple calling free().
This function can be used to free promises with data . It assumes data simple can be destroyed with simple calling free () .
void sirinet_promises_llist_free(slist_t * promises)
{
    sirinet_promise_t * promise;
    for (size_t i = 0; i < promises->len; i++)
    {
        promise = (sirinet_promise_t *) promises->data[i];
        if (promise != NULL)
        {
            free(promise->data);
            sirinet_promise_decref(promise);
        }
    }
}
void sirinet_promises_llist_free ( slist_t * promises ) { sirinet_promise_t * promise ; for ( size_t i = 0 ; i < promises -> len ; i ++ ) { promise = ( sirinet_promise_t * ) promises -> data [ i ] ; if ( promise != NULL ) { free ( promise -> data ) ; sirinet_promise_decref ( promise ) ; } } }
This function can be used to free promises with data.
This function can be used to free promises with data .
/* make sure we free the promise and data */