Explorar el Código

Memory leak

Source commit: 11280bc581b80421d9cc270d0278b8992ffa0de7
Martin Prikryl hace 9 años
padre
commit
cf2b9fdeed
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;