GNUNET_free (it);
}
+static void
+free_op (struct GNUNET_IDENTITY_PROVIDER_Operation* op)
+{
+ if (NULL == op)
+ return;
+ if (NULL != op->env)
+ GNUNET_MQ_discard (op->env);
+ GNUNET_free(op);
+}
/**
GNUNET_CONTAINER_DLL_remove (h->op_head,
h->op_tail,
op);
- GNUNET_free (op);
+ free_op (op);
}
GNUNET_CONTAINER_DLL_remove (h->op_head,
h->op_tail,
op);
- GNUNET_free (op);
+ free_op (op);
}
return;
}
GNUNET_CONTAINER_DLL_remove (h->op_head,
h->op_tail,
op);
- GNUNET_free (op);
+ free_op (op);
}
return;
if (NULL != op->tr_cb)
op->tr_cb (op->cls, ticket);
}
- GNUNET_free (op);
+ free_op (op);
return;
} else if (NULL != it) {
if (msg_len == sizeof (struct TicketResultMessage))
GNUNET_break (0);
}
+
/**
* Handle an incoming message of type
* #GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_REVOKE_TICKET_RESULT
GNUNET_CONTAINER_DLL_remove (h->op_head,
h->op_tail,
op);
- GNUNET_free (op);
+ free_op (op);
return;
}
GNUNET_assert (0);
h->op_tail,
op);
GNUNET_MQ_discard (op->env);
- GNUNET_free (op);
+ free_op (op);
}