]> 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:18 +0000 (14:18 +0200)
commitf2b47d138f94ee869e458aa766aa37a83e81a3fc
treea9aca9b1d04164c7cbf733134682f8381abfbc74
parente431af11ffee0902d100c6815975dd3fe23dcae9
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