[yunqa.de] YuOpenSSL : Memory leak when using library in thread

  • From: the_laser <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "the_laser" for DMARC)
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Wed, 27 Jan 2021 21:44:41 +0300

Hello.

when using YuOpenSSL with Synapse , multiple memory leak occurs on each HTTPS 
request, if request done in thread.
if using standard openssl libraries ( YuOpenSSL NOT defined ) - no memory leaks.

using delphi 2007, FastMM 4.992.

here is modified example from YuOpenSSl :

---------------
program YuOpenSSL_THTTPSend;

{$APPTYPE CONSOLE}
{$I DICompilers.inc}

uses
  FASTMM4,
  SysUtils, Classes,
  httpsend, ssl_openssl;


type
TTest=Class(TThread)
       procedure execute; override;

       end;


procedure TTest.Execute;

var
  SynHttp: THTTPSend;
  SL: TStringList;
  TEST: TThread;

begin
  try
    SynHttp := THTTPSend.Create;
    try
      SynHttp.HTTPMethod('GET', 'https://www.yunqa.de/delphi/');

      SL := TStringList.Create;
      try
        WriteLn(SynHttp.Document.Position);
        WriteLn(SynHttp.Document.Size);
        SL.LoadFromStream(SynHttp.Document);
        WriteLn(SL.Text);
      finally
        SL.Free;
      end;
    finally
      SynHttp.Free;
    end;

  except
    on e: Exception do
      WriteLn(e.ClassName, ': ', e.Message);
  end;

end;


var
Example:TTEST;
begin

Example:=TTest.Create(true);
try
  Example.Resume;
  Example.WaitFor;
finally
Example.Free;
end;

  WriteLn('Done. Press ENTER to exit.');
  ReadLn;

end.
------------------------------------------------------


--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
5834FD [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]
5829EB [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]

The block is currently used for an object of class: Unknown

The allocation number is: 4144

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
58350A [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]
5829EB [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]

The block is currently used for an object of class: Unknown

The allocation number is: 4145

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
583574 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]
5829EB [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]

The block is currently used for an object of class: Unknown

The allocation number is: 4148

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
5834FD [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]
581A8F [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]

The block is currently used for an object of class: Unknown

The allocation number is: 4155

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
58350A [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]
581A8F [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]

The block is currently used for an object of class: Unknown

The allocation number is: 4156

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 148

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D14E8 [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CIPHER_CTX_new]
583574 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]
581A8F [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]

The block is currently used for an object of class: Unknown

The allocation number is: 4159

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 436

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
47FF3E [YuOpenSSL][YuOpenSSL][YuOpenSSL.ERR_get_state]
47F7C4 [YuOpenSSL][YuOpenSSL][YuOpenSSL.ERR_clear_error]
4C8F37 [YuOpenSSL][YuOpenSSL][YuOpenSSL.engine_load_dynamic_int]
57DB1D [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
57DB11 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
57CF43 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_run_once]
57E174 [YuOpenSSL][YuOpenSSL][YuOpenSSL.OPENSSL_init_crypto]
4C4DAF [YuOpenSSL][YuOpenSSL][YuOpenSSL.ENGINE_load_builtin_engines]

The block is currently used for an object of class: Unknown

The allocation number is: 834

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 12

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
57D8C0 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
57DBB4 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@ossl_init_thread_start]
47FF5E [YuOpenSSL][YuOpenSSL][YuOpenSSL.ERR_get_state]
47F7C4 [YuOpenSSL][YuOpenSSL][YuOpenSSL.ERR_clear_error]
4C8F37 [YuOpenSSL][YuOpenSSL][YuOpenSSL.engine_load_dynamic_int]
57DB1D [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
57DB11 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
57CF43 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_run_once]

The block is currently used for an object of class: Unknown

The allocation number is: 835

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
57EB05 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_secure_zalloc]
581CD0 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]
5829EB [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]
581AC3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_bytes]
454766 [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]

The block is currently used for an object of class: Unknown

The allocation number is: 4143

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583529 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]

The block is currently used for an object of class: Unknown

The allocation number is: 4146

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583540 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]

The block is currently used for an object of class: Unknown

The allocation number is: 4147

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583595 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582BD1 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_master]

The block is currently used for an object of class: Unknown

The allocation number is: 4149

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
57EB05 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_secure_zalloc]
581CD0 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]
581A8F [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]
45477A [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]
58A191 
[ssl_yuopenssl_lib.pas][ssl_yuopenssl_lib][ssl_yuopenssl_lib.SslCtxNew][282]

The block is currently used for an object of class: Unknown

The allocation number is: 4154

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583529 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]

The block is currently used for an object of class: Unknown

The allocation number is: 4157

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583540 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]

The block is currently used for an object of class: Unknown

The allocation number is: 4158

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 276

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
4D164E [YuOpenSSL][YuOpenSSL][YuOpenSSL.EVP_CipherInit_ex]
429EFC [YuOpenSSL][YuOpenSSL][YuOpenSSL.memset]
583595 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_ctr_init]
581BFF [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581DAB [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
581E22 [YuOpenSSL][YuOpenSSL][YuOpenSSL...]
5828AE [YuOpenSSL][YuOpenSSL][YuOpenSSL.@rand_drbg_unlock]
582C35 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@RAND_DRBG_get0_private]

The block is currently used for an object of class: Unknown

The allocation number is: 4160

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 36

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
581372 [YuOpenSSL][YuOpenSSL][YuOpenSSL.rand_pool_new]
57CFA9 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_set_local]
5829FD [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]
581AC3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_bytes]
454766 [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]
58A191 
[ssl_yuopenssl_lib.pas][ssl_yuopenssl_lib][ssl_yuopenssl_lib.SslCtxNew][282]
58AFE4 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Init][436]
58B164 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Prepare][503]

The block is currently used for an object of class: Unknown

The allocation number is: 4152

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 36

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
581372 [YuOpenSSL][YuOpenSSL][YuOpenSSL.rand_pool_new]
57CFA9 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_set_local]
581A9C [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]
45477A [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]
58A191 
[ssl_yuopenssl_lib.pas][ssl_yuopenssl_lib][ssl_yuopenssl_lib.SslCtxNew][282]
58AFE4 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Init][436]
58B164 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Prepare][503]
58B19E [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Connect][518]

The block is currently used for an object of class: Unknown

The allocation number is: 4163

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 52

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
581409 [YuOpenSSL][YuOpenSSL][YuOpenSSL.rand_pool_new]
57CFA9 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_set_local]
581A9C [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_priv_bytes]
45477A [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]
58A191 
[ssl_yuopenssl_lib.pas][ssl_yuopenssl_lib][ssl_yuopenssl_lib.SslCtxNew][282]
58AFE4 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Init][436]
58B164 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Prepare][503]
58B19E [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Connect][518]

The block is currently used for an object of class: Unknown

The allocation number is: 4164

--------------------------------2021/1/27 
21:42:05--------------------------------
A memory block has been leaked. The size is: 52

This block was allocated by thread 0x62C, and the stack trace (return 
addresses) at the time was:
429E96 [YuOpenSSL][YuOpenSSL][YuOpenSSL.malloc]
57B695 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_malloc]
57B6A3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.CRYPTO_zalloc]
581409 [YuOpenSSL][YuOpenSSL][YuOpenSSL.rand_pool_new]
57CFA9 [YuOpenSSL][YuOpenSSL][YuOpenSSL.@CRYPTO_THREAD_set_local]
5829FD [YuOpenSSL][YuOpenSSL][YuOpenSSL.@drbg_delete_thread_state]
581AC3 [YuOpenSSL][YuOpenSSL][YuOpenSSL.RAND_bytes]
454766 [YuOpenSSL][YuOpenSSL][YuOpenSSL.SSL_CTX_new]
58A191 
[ssl_yuopenssl_lib.pas][ssl_yuopenssl_lib][ssl_yuopenssl_lib.SslCtxNew][282]
58AFE4 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Init][436]
58B164 [SSL_OpenSSL.pas][ssl_openssl][ssl_openssl.TSSLOpenSSL.Prepare][503]

The block is currently used for an object of class: Unknown

The allocation number is: 4153

--------------------------------2021/1/27 
21:42:05--------------------------------
This application has leaked memory. The small block leaks are (excluding 
expected leaks registered by pointer):

5 - 12 bytes: Unknown x 1
21 - 36 bytes: Unknown x 2
37 - 52 bytes: Unknown x 2
133 - 148 bytes: Unknown x 6
245 - 276 bytes: Unknown x 8
389 - 436 bytes: Unknown x 1

Note: Memory leak detail is logged to a text file in the same folder as this 
application. To disable this memory leak check, undefine 
"EnableMemoryLeakReporting".

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: