From e19b2ab142e4e3be2060532ffb4064dbb3c3f049 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 24 Sep 2023 09:10:50 +0900 Subject: [PATCH] out_oracle_log_analytics: set NULL to prevent double free Signed-off-by: Takahiro Yamashita --- plugins/out_oracle_log_analytics/oci_logan_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/out_oracle_log_analytics/oci_logan_conf.c b/plugins/out_oracle_log_analytics/oci_logan_conf.c index 76d7d676140..1e77271431c 100644 --- a/plugins/out_oracle_log_analytics/oci_logan_conf.c +++ b/plugins/out_oracle_log_analytics/oci_logan_conf.c @@ -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] == '[') {