]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/helpers/quictestlib.c: Use goto instead of return to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Mon, 12 May 2025 13:59:02 +0000 (09:59 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 13 Jun 2025 10:29:27 +0000 (12:29 +0200)
commit654bae104045cb96937d9e7bbc0e731b63158a2b
treef7bd221ea97e79a0ca26c2b40ff9dd2936d97a4a
parent9997b415e9527931682df8566f78173a0c4e0695
test/helpers/quictestlib.c: Use goto instead of return to avoid memory leak

When TEST_ptr(*cssl) fails, bdata should be freed to avoid memory leak.

Fixes: a55b689 ("Use reported short conn id len in qtestlib")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27599)

(cherry picked from commit de1e4989d564ea9a6d2960204806a1f3537419ad)
test/helpers/quictestlib.c