|
|
@ -124,11 +124,11 @@ static void AppLayerFreeExpectation(Expectation *exp)
|
|
|
|
static void ExpectationListFree(void *el)
|
|
|
|
static void ExpectationListFree(void *el)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ExpectationList *exp_list = (ExpectationList *)el;
|
|
|
|
ExpectationList *exp_list = (ExpectationList *)el;
|
|
|
|
Expectation *exp, *pexp;
|
|
|
|
|
|
|
|
if (exp_list == NULL)
|
|
|
|
if (exp_list == NULL)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (exp_list->length > 0) {
|
|
|
|
if (exp_list->length > 0) {
|
|
|
|
|
|
|
|
Expectation *exp = NULL, *pexp = NULL;
|
|
|
|
CIRCLEQ_FOREACH_SAFE(exp, &exp_list->list, entries, pexp) {
|
|
|
|
CIRCLEQ_FOREACH_SAFE(exp, &exp_list->list, entries, pexp) {
|
|
|
|
CIRCLEQ_REMOVE(&exp_list->list, exp, entries);
|
|
|
|
CIRCLEQ_REMOVE(&exp_list->list, exp, entries);
|
|
|
|
exp_list->length--;
|
|
|
|
exp_list->length--;
|
|
|
|