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] == '[') {