I don't know why I keep forgetting this.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
static void collecty_ctx_free(collecty_ctx* ctx) {
- return;
+ free(ctx);
}
int collecty_ctx_create(collecty_ctx** ctx) {
collecty_ctx_unref(self->ctx);
if (self->loop)
sd_event_unref(self->loop);
+ free(self);
}
int collecty_daemon_create(collecty_daemon** daemon, collecty_ctx* ctx) {
collecty_daemon_unref(self->daemon);
if (self->ctx)
collecty_ctx_unref(self->ctx);
+ free(self);
}
int collecty_module_create(collecty_module** module,