Skip to content

Commit e19b2ab

Browse files
nokute78edsiper
authored andcommitted
out_oracle_log_analytics: set NULL to prevent double free
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 3a37eb8 commit e19b2ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/out_oracle_log_analytics/oci_logan_conf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ static int load_oci_credentials(struct flb_oci_logan *ctx)
121121
goto iterate;
122122
}
123123
mk_mem_free(profile);
124+
profile = NULL;
124125
}
125126
if(found_profile) {
126127
if(line[0] == '[') {

0 commit comments

Comments
 (0)