This is an automated email from the ASF dual-hosted git repository.

chenBright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 8939e3dd Fix DH-8192 prime leak on generator allocation failure (#3695)
8939e3dd is described below

commit 8939e3dd45efd404a62a009981e987f6c863ab5f
Author: nkysg <[email protected]>
AuthorDate: Mon Nov 2 23:24:05 2026 +0800

    Fix DH-8192 prime leak on generator allocation failure (#3695)
---
 src/brpc/details/ssl_helper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/brpc/details/ssl_helper.cpp b/src/brpc/details/ssl_helper.cpp
index 4408de74..55030804 100644
--- a/src/brpc/details/ssl_helper.cpp
+++ b/src/brpc/details/ssl_helper.cpp
@@ -896,7 +896,7 @@ static DH* SSLGetDH8192() {
     BIGNUM* g = nullptr;
     BN_dec2bn(&g, "2");
     if (!g) {
-        BN_free(g);
+        BN_free(p);
         return nullptr;
     }
     DH *dh = DH_new();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to