]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/testutil/testutil_init.c: Add OPENSSL_free() to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Mon, 12 May 2025 14:02:05 +0000 (10:02 -0400)
committerTomas Mraz <tomas@openssl.org>
Tue, 13 May 2025 12:17:28 +0000 (14:17 +0200)
commit3818f7779ef4bf4d4ccacd13506ec92885e45553
treea403e4ccff45fdf0d6f40469439e4e794e1a4a05
parentaa8bca2e81030560d690cb68bbcbe8b7d00d1d29
test/testutil/testutil_init.c: Add OPENSSL_free() to avoid memory leak

Free trace_data if error occurs to avoid memory leak.

Fixes: d73458d17a ("Add tracing capability in test utilities")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27600)
test/testutil/testutil_init.c