Skip to content

Commit

Permalink
out_oracle_log_analytics: add flb_sds_destroy for key
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Sep 23, 2023
1 parent 62471bc commit eb127a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/out_oracle_log_analytics/oci_logan_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ static int global_metadata_fields_create(struct flb_oci_logan *ctx)
}
f->val = flb_sds_create(val->str);
if (!f->val) {
flb_sds_destroy(f->key);
flb_free(f);
return -1;
}
Expand Down Expand Up @@ -249,6 +250,7 @@ static int log_event_metadata_create(struct flb_oci_logan *ctx)
}
f->val = flb_sds_create(val->str);
if (!f->val) {
flb_sds_destroy(f->key);
flb_free(f);
return -1;
}
Expand Down

0 comments on commit eb127a3

Please sign in to comment.