Skip to content

Commit

Permalink
Fix memory leak when reading certificates (fix by @Mekk, confluentinc…
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Oct 28, 2022
1 parent 259e075 commit 0c95281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ librdkafka v1.9.3 is a maintenance release:
### General fixes

* Windows: couldn't read a PKCS#12 keystore correctly because binary mode wasn't explicitly set and Windows defaults to text mode.
* Fixed memory leak when loading SSL certificates (@Mekk, #3930)

## Enhancements

Expand Down
1 change: 1 addition & 0 deletions src/rdkafka_cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ static rd_kafka_cert_t *rd_kafka_cert_new(const rd_kafka_conf_t *conf,
goto fail;
}

X509_free(x509);
cnt++;
}

Expand Down

0 comments on commit 0c95281

Please sign in to comment.