]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/timing_load_creds.c: Free contents in error handling to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Mon, 5 May 2025 18:52:40 +0000 (14:52 -0400)
committerPauli <ppzgs1@gmail.com>
Thu, 8 May 2025 23:32:22 +0000 (09:32 +1000)
commitf4d9904763e59db031007f4a938f1f8b96fdcee7
treeec7cddbeb3aeec5945a363ec3de0262acc17d916
parentd521ed9ea5632f00b01ac111864fedcbfd2fb7a6
test/timing_load_creds.c: Free contents in error handling to avoid memory leak

Add a call to OPENSSL_free() in the error handling path to ensure contents is properly freed and prevent a memory leak.

Fixes: 45479dcee1 ("test/timing_load_creds.c: fix coding style and other (mostly minor) issues")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27570)
test/timing_load_creds.c