Move processor_t (thread-pool) to libhydra.
[strongswan.git] / src / libhydra / hydra.c
index 16a8193..2f34595 100644 (file)
@@ -42,6 +42,7 @@ void libhydra_deinit()
 {
        private_hydra_t *this = (private_hydra_t*)hydra;
        this->public.attributes->destroy(this->public.attributes);
+       this->public.processor->destroy(this->public.processor);
        free((void*)this->public.daemon);
        free(this);
        hydra = NULL;
@@ -57,6 +58,7 @@ bool libhydra_init(const char *daemon)
        INIT(this,
                .public = {
                        .attributes = attribute_manager_create(),
+                       .processor = processor_create(),
                        .daemon = strdup(daemon ?: "libhydra"),
                },
        );