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 committed Sep 24, 2023
1 parent ba44efd commit 9a1d4f2
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 9a1d4f2

Please sign in to comment.