list_add(&parsers, &i->list);
}
+static void __attribute__((destructor)) __cleanup_parsers(void)
+{
+ struct p_item *item, *tmp;
+
+ list_for_each_entry_safe(&parsers, item, tmp, list)
+ talloc_free(item);
+}
+
static struct discover_device *test_create_device_simple(
struct discover_context *ctx)
{
struct parser_test *test;
test = talloc_zero(NULL, struct parser_test);
- test->handler = device_handler_init(NULL, 0);
+ test->handler = device_handler_init(NULL, NULL, 0);
test->ctx = test_create_context(test);
return test;