Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_calyptia_fleet: add missing release function #8123

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,13 +1147,15 @@ static int in_calyptia_fleet_init(struct flb_input_instance *in,

if (tmpdir == NULL) {
flb_plg_error(in, "unable to find temporary directory (%%TEMP%%).");
flb_free(ctx);
return -1;
}

ctx->config_dir = flb_sds_create_size(4096);

if (ctx->config_dir == NULL) {
flb_plg_error(in, "unable to allocate config-dir.");
flb_free(ctx);
return -1;
}
flb_sds_printf(&ctx->config_dir, "%s" PATH_SEPARATOR "%s", tmpdir, "calyptia-fleet");
Expand Down Expand Up @@ -1202,6 +1204,7 @@ static int in_calyptia_fleet_init(struct flb_input_instance *in,

if (ret == -1) {
flb_plg_error(ctx->ins, "could not initialize collector for fleet input plugin");
flb_upstream_destroy(ctx->u);
flb_free(ctx);
return -1;
}
Expand Down
Loading