Esempio n. 1
0
void sc_request_free_nameVals(sc_request_nameVal_t *header) {
  while (header) {
    sc_request_nameVal_t *next;
    next = header->next;

    sc_request_free_nameVal(header);

    header = next;
  }
}
Esempio n. 2
0
void sc_request_free_nameVals(sc_request_nameVal_t **nameVals) {
    if (!nameVals) return;
    if (*nameVals) {
        sc_request_nameVal_t *nameVal;

        nameVal = (*nameVals)->first;
        while (nameVal) {
            sc_request_nameVal_t *next;
            next = nameVal->next;

            sc_request_free_nameVal(&nameVal);

            nameVal = next;
        }
    }
    *nameVals = NULL;
}