We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 067c064 commit 6109162Copy full SHA for 6109162
plugins/in_calyptia_fleet/in_calyptia_fleet.c
@@ -1617,10 +1617,17 @@ static flb_sds_t get_fleet_id_from_header(struct flb_in_calyptia_fleet_config *c
1617
flb_sds_t fleet_id;
1618
flb_sds_t name;
1619
struct flb_cf *cf_hdr;
1620
+ flb_sds_t cfgheadername;
1621
1622
1623
if (exists_header_fleet_config(ctx)) {
- cf_hdr = flb_cf_create_from_file(NULL, hdr_fleet_config_filename(ctx));
1624
+ cfgheadername = hdr_fleet_config_filename(ctx);
1625
+ if (cfgheadername == NULL) {
1626
+ return NULL;
1627
+ }
1628
+
1629
+ cf_hdr = flb_cf_create_from_file(NULL, cfgheadername);
1630
+ flb_sds_destroy(cfgheadername);
1631
1632
if (cf_hdr == NULL) {
1633
return NULL;
0 commit comments