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 authored and edsiper committed Aug 5, 2024
1 parent 209095d commit 7ce4aa6
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 7ce4aa6

Please sign in to comment.