From 9a1d4f242973f89091e783b901fd6ed0bbe355b2 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 87a34aab681..cc1a73cceec 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] == '[') {