Browse Source

Memory leak

Source commit: 11280bc581b80421d9cc270d0278b8992ffa0de7
Martin Prikryl 9 years ago
parent
commit
cf2b9fdeed
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/core/WebDAVFileSystem.cpp

+ 3 - 1
source/core/WebDAVFileSystem.cpp

@@ -2355,7 +2355,9 @@ void __fastcall TWebDAVFileSystem::CollectTLSSessionInfo()
   FTlsVersionStr = StrFromNeon(ne_ssl_get_version(FNeonSession));
   AddToList(FSessionInfo.SecurityProtocolName, FTlsVersionStr, L", ");
 
-  UnicodeString Cipher = StrFromNeon(ne_ssl_get_cipher(FNeonSession));
+  char * Buf = ne_ssl_get_cipher(FNeonSession);
+  UnicodeString Cipher = StrFromNeon(Buf);
+  ne_free(Buf);
   FSessionInfo.CSCipher = Cipher;
   FSessionInfo.SCCipher = Cipher;