[openssl/openssl] c5d061: test: Fix memory leak of asynctest

Tianjia Zhang noreply at github.com
Fri Sep 23 13:32:36 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: c5d061290baa9466182b6d1a5b88aa9e5a4b2386
      https://github.com/openssl/openssl/commit/c5d061290baa9466182b6d1a5b88aa9e5a4b2386
  Author: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M test/asynctest.c

  Log Message:
  -----------
  test: Fix memory leak of asynctest

ASYNC_init_thread() will be called automatically by ASYNC_start_job(),
so ASYNC_cleanup_thread() must be called at last, otherwise it will
cause memory leak.

Signed-off-by: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb at siemens.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16703)




More information about the openssl-commits mailing list