[openssl/openssl] 7c0521: test: Fix memory leak of asynctest

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

  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 7c05215b872a78c48326bf6d646410bb7d30db40
  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)

(cherry picked from commit c5d061290baa9466182b6d1a5b88aa9e5a4b2386)

More information about the openssl-commits mailing list