gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 90/125: openssl: fix memory leak of SSLKEYLOGFILE f


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 90/125: openssl: fix memory leak of SSLKEYLOGFILE filename
Date: Sun, 21 Jan 2018 23:42:25 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 129390a518c41739364081c8966a718f2ac347a4
Author: Jay Satiro <address@hidden>
AuthorDate: Wed Jan 3 15:22:41 2018 -0500

    openssl: fix memory leak of SSLKEYLOGFILE filename
    
    - Free the copy of SSLKEYLOGFILE env returned by curl_getenv during ossl
      initialization.
    
    Caught by ASAN.
---
 lib/vtls/openssl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 6d9e81d3b..89f873342 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -904,7 +904,7 @@ static int x509_name_oneline(X509_NAME *a, char *buf, 
size_t size)
 static int Curl_ossl_init(void)
 {
 #ifdef ENABLE_SSLKEYLOGFILE
-  const char *keylog_file_name;
+  char *keylog_file_name;
 #endif
 
   OPENSSL_load_builtin_modules();
@@ -957,6 +957,7 @@ static int Curl_ossl_init(void)
         keylog_file_fp = NULL;
       }
     }
+    Curl_safefree(keylog_file_name);
   }
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]