Skip to content

Commit

Permalink
out_oracle_log_analytics: set NULL to prevent double free
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 3a37eb8 commit e19b2ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/out_oracle_log_analytics/oci_logan_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ static int load_oci_credentials(struct flb_oci_logan *ctx)
goto iterate;
}
mk_mem_free(profile);
profile = NULL;
}
if(found_profile) {
if(line[0] == '[') {
Expand Down

0 comments on commit e19b2ab

Please sign in to comment.