]> 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:28:59 +0000 (12:28 +0200)
commitde1e4989d564ea9a6d2960204806a1f3537419ad
tree1fec32d6dc4d73c680bd158f6f9275fd417de1de
parent339ced70da1206bf090c3de981093b99cfa0d39a
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)
test/helpers/quictestlib.c