Skip to content

Commit 60ded06

Browse files
committed
fix: add resource cleanup for leaf certificate
Signed-off-by: rghouzra <rghouzra@student.1337.ma>
1 parent c4c4650 commit 60ded06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/out_oracle_log_analytics/oci_logan_conf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,9 @@ int flb_oci_logan_conf_destroy(struct flb_oci_logan *ctx)
17741774
if (ctx->imds.tenancy_ocid) {
17751775
flb_sds_destroy(ctx->imds.tenancy_ocid);
17761776
}
1777-
1777+
if (ctx->imds.leaf_cert) {
1778+
flb_sds_destroy(ctx->imds.leaf_cert);
1779+
}
17781780
if (ctx->imds.session_pubkey) {
17791781
free(ctx->imds.session_pubkey);
17801782
}

0 commit comments

Comments
 (0)