GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Correctly free buffer if push fails (#966) · netty/netty-tcnative@bc03f16

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • openssl-dynamic/src/main/c
    • ssl.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎openssl-dynamic/src/main/c/ssl.c‎

Copy file name to clipboardExpand all lines: openssl-dynamic/src/main/c/ssl.c
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,7 @@ TCN_IMPLEMENT_CALL(jlong, SSL, parseX509Chain)(TCN_STDARGS, jlong x509ChainBio)
21842184
data = NULL;
21852185

21862186
if (buffer == NULL || sk_CRYPTO_BUFFER_push(chain, buffer) <= 0) {
2187+
CRYPTO_BUFFER_free(buffer); // safe with NULL; frees buffer if push failed
21872188
#else
21882189
chain = sk_X509_new_null();
21892190
while ((cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL)) != NULL) {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.