]> 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:18:00 +0000 (14:18 +0200)
commit4175b823ac1be4b4dab33f220cf8df37d1d5fdd2
tree8c0afcb4bbccd251e562de3ccc2bc8d203a6902b
parent7b44fdd74ad76836e20e36e7d50fb3e2e1ff1a3a
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)

(cherry picked from commit 3818f7779ef4bf4d4ccacd13506ec92885e45553)
test/testutil/testutil_init.c