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 — Auto-port 5.0: Ensure the CRYPTO_BUFFER_POOL is also freed when we fa… · netty/netty@1aba270

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-native-quic/src/main/c
    • netty_quic_boringssl.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-native-quic/src/main/c/netty_quic_boringssl.c‎

Copy file name to clipboardExpand all lines: codec-native-quic/src/main/c/netty_quic_boringssl.c
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ static jlong netty_boringssl_SSLContext_new0(JNIEnv* env, jclass clazz, jboolean
10561056
goto error;
10571057
}
10581058

1059-
ctx = SSL_CTX_new(TLS_with_buffers_method());
1059+
ctx = SSL_CTX_new(TLS_with_buffers_method());
10601060
// When using BoringSSL we want to use CRYPTO_BUFFER to reduce memory usage and minimize overhead as we do not need
10611061
// X509* at all and just need the raw bytes of the certificates to construct our Java X509Certificate.
10621062
//
@@ -1136,7 +1136,11 @@ static jlong netty_boringssl_SSLContext_new0(JNIEnv* env, jclass clazz, jboolean
11361136
return (jlong) ctx;
11371137
error:
11381138
if (ctx != NULL) {
1139+
CRYPTO_BUFFER_POOL* pool = SSL_CTX_get_ex_data(ctx, crypto_buffer_pool_idx);
11391140
SSL_CTX_free(ctx);
1141+
if (pool != NULL) {
1142+
CRYPTO_BUFFER_POOL_free(pool);
1143+
}
11401144
}
11411145
if (alpn != NULL) {
11421146
OPENSSL_free(alpn->proto_data);

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.